From dc9337579e3a1f04bd3da39eafc598e99e945f8f Mon Sep 17 00:00:00 2001 From: davor Date: Tue, 14 Feb 2012 11:41:31 +0100 Subject: Fixed PATH problem and replaced redis version. --- ot-tools-root.sh | 4 ++-- 1 file 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 -- cgit v1.2.3