diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-11-17 09:36:12 +0100 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-11-17 09:36:12 +0100 |
commit | 64e21f3e1916c989786a2c329e922f7932e330ee (patch) | |
tree | 1870092dfcfa998f690cf290e9323412f9ee072b /ot-tools-root.sh | |
parent | 025e9ed0ef3aae6cfd0b0f3c2c2e122d50ac008d (diff) |
Fixed otkill (ohm port)
Diffstat (limited to 'ot-tools-root.sh')
-rw-r--r-- | ot-tools-root.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ot-tools-root.sh b/ot-tools-root.sh index eec6780..b6ebfcc 100644 --- a/ot-tools-root.sh +++ b/ot-tools-root.sh @@ -72,7 +72,7 @@ otreload() { # Kill the server otkill() { sudo killall -u root nginx >/dev/null 2>&1 - sudo bash -c "source $HOME/.opentox-ui.sh; redis-cli shutdown >/dev/null 2>&1" + sudo bash -c "source $HOME/.opentox-ui.sh; redis-cli -p $OHM_PORT shutdown >/dev/null 2>&1" while sudo ps x | grep PassengerWatchdog | grep -v grep >/dev/null 2>&1; do sleep 1; done while sudo ps x | grep Rack | grep -v grep >/dev/null 2>&1; do sleep 1; done for p in `pgrep -u root R 2>/dev/null`; do sudo kill -9 $p; done |