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 From 6f754e8504fbf1f47339f5485b01820833d5e2a1 Mon Sep 17 00:00:00 2001 From: davor Date: Tue, 14 Feb 2012 12:06:22 +0100 Subject: Fixed PATH problem in otreload. --- ot-tools-root.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ot-tools-root.sh b/ot-tools-root.sh index a46293a..da3bd69 100644 --- a/ot-tools-root.sh +++ b/ot-tools-root.sh @@ -68,7 +68,7 @@ alias ottail='tail -f $HOME/.opentox/log/production.log' # Reload the server otreload() { otconfig - sudo bash -c "nginx -s reload" + sudo bash -c "source $HOME/.opentox-ui.sh; nginx -s reload" } # Kill the server -- cgit v1.2.3 From 50faf0c3cbd7ce76fa388e9207a1e9993fd450f7 Mon Sep 17 00:00:00 2001 From: davor Date: Tue, 14 Feb 2012 12:10:06 +0100 Subject: Fixed PATH problem in otkill --- ot-tools-root.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ot-tools-root.sh b/ot-tools-root.sh index da3bd69..064ea29 100644 --- a/ot-tools-root.sh +++ b/ot-tools-root.sh @@ -75,7 +75,7 @@ otreload() { otkill() { otconfig sudo killall -u root nginx >/dev/null 2>&1 - sudo bash -c "redis-cli -p $OHM_PORT 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 -- cgit v1.2.3 From 803ae809cc5092e082ee527dac6eb25c1a63dcf3 Mon Sep 17 00:00:00 2001 From: rautenberg Date: Thu, 1 Mar 2012 10:07:49 +0100 Subject: add passenger_max_pool_size to nginx.conf with value 30 --- nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/nginx.conf b/nginx.conf index 9f87adf..c15dc02 100644 --- a/nginx.conf +++ b/nginx.conf @@ -14,6 +14,7 @@ http { passenger_log_level 2; passenger_spawn_method conservative; #passenger_use_global_queue on; + passenger_max_pool_size 30; include NGINX_DEST/conf/mime.types; default_type application/octet-stream; -- cgit v1.2.3