diff options
author | davor <vorgrimmlerdavid@gmx.de> | 2012-02-14 11:41:31 +0100 |
---|---|---|
committer | davor <vorgrimmlerdavid@gmx.de> | 2012-02-14 11:41:31 +0100 |
commit | dc9337579e3a1f04bd3da39eafc598e99e945f8f (patch) | |
tree | cd6737eddcb45f1e6e41d7139903eedd0fb28267 | |
parent | d6d9bab4f77dc4e65f8120f2602d38178721a80e (diff) |
Fixed PATH problem and replaced redis version.
-rw-r--r-- | ot-tools-root.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ot-tools-root.sh b/ot-tools-root.sh index 7e1233b..a46293a 100644 --- a/ot-tools-root.sh +++ b/ot-tools-root.sh @@ -52,8 +52,8 @@ otupdate() { otstart() { otconfig otkill - sudo bash -c "nohup redis-server $HOME/opentox-ruby/redis-2.2.2/redis.conf >/dev/null 2>&1 &" - sudo bash -c "nohup nginx -c $HOME/opentox-ruby/nginx/conf/nginx.conf >/dev/null 2>&1 &" + sudo bash -c "source $HOME/.opentox-ui.sh; nohup redis-server $HOME/opentox-ruby/redis-*/redis.conf >/dev/null 2>&1 &" + sudo bash -c "source $HOME/.opentox-ui.sh; nohup nginx -c $HOME/opentox-ruby/nginx/conf/nginx.conf >/dev/null 2>&1 &" sleep 2 if ! pgrep -u root nginx>/dev/null 2>&1; then echo "Failed to start nginx."; fi if ! pgrep -u root redis-server>/dev/null 2>&1; then echo "Failed to start redis."; fi |