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 From e21e1db750e78acf3da17839b7781990cfbea916 Mon Sep 17 00:00:00 2001 From: Andreas Maunz Date: Fri, 23 Mar 2012 08:46:37 +0100 Subject: Fixed base install dpkg --- base-install.sh | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/base-install.sh b/base-install.sh index 73c9e37..aed094c 100644 --- a/base-install.sh +++ b/base-install.sh @@ -32,9 +32,15 @@ packs="binutils build-essential git-core gnuplot hostname libcurl4-openssl-dev l echo echo "Base Packages:" +echo +echo "Updating index" +sudo $APTITUDE update -y >/dev/null 2>&1 + +echo +echo "Checking installation:" pack_arr="" for p in $packs; do - if $DPKG -S "$p" >/dev/null 2>&1; then + if [ "un" != `$DPKG -l "$p" 2>/dev/null | tail -1 | awk -F " " '{print $1}'` ]; then printf "%50s%30s\n" "'$p'" "Y" else printf "%50s%30s\n" "'$p'" "N" @@ -45,19 +51,16 @@ done if [ -n "$pack_arr" ]; then echo echo "Checking availablity:" - sudo $APTITUDE update -y >/dev/null 2>&1 -# sudo $APTITUDE upgrade -y >/dev/null 2>&1 + for p in $pack_arr; do + if [ -n "`$APT_CACHE search $p`" ] ; then + printf "%50s%30s\n" "'$p'" "Y" + else + printf "%50s%30s\n" "'$p'" "N" + pack_fail="$pack_fail $p" + fi + done fi -for p in $pack_arr; do - if [ -n "`$APT_CACHE search $p`" ] ; then - printf "%50s%30s\n" "'$p'" "Y" - else - printf "%50s%30s\n" "'$p'" "N" - pack_fail="$pack_fail $p" - fi -done - if [ -n "$pack_fail" ]; then echo echo "WARNING: At least one missing package has no suitable installation candidate." @@ -65,7 +68,6 @@ if [ -n "$pack_fail" ]; then sleep 5 fi -echo sun-java6-jdk shared/accepted-sun-dlj-v1-1 select true | sudo /usr/bin/debconf-set-selections echo if [ -n "$pack_arr" ]; then echo "Installing missing packages:" -- cgit v1.2.3