diff options
author | francis <francis> | 2009-07-14 12:01:22 +0000 |
---|---|---|
committer | francis <francis> | 2009-07-14 12:01:22 +0000 |
commit | 2bfaea0adc740b573b25cf192e99863d10f714d4 (patch) | |
tree | dad655b649d21d8c9faa2df7a307d0306a27e4db | |
parent | ffa1deee976cdde730f0524da0443d579ea81043 (diff) |
Double number of mongrels.
-rw-r--r-- | config/foimongreld.ugly | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/config/foimongreld.ugly b/config/foimongreld.ugly index fa56eac53..f67b732e8 100644 --- a/config/foimongreld.ugly +++ b/config/foimongreld.ugly @@ -7,28 +7,29 @@ RUNDIR=/data/vhost/!!(*= $vhost *)!!/mysociety/foi PIDDIR=/data/vhost/!!(*= $vhost *)!!/mysociety/foi/log DUSER=!!(*= $user *)!! +# number of ports = number of instances - also need to change Apache config though. +PORTS="3000 3001 3002 3003 3004 3005 3006 3007" + function stop_mongrels { - PORT=3000 stop_mongrel - PORT=3001 stop_mongrel - PORT=3002 stop_mongrel - PORT=3003 stop_mongrel - PORT=3004 stop_mongrel + + for PORT in $PORTS + do + stop_mongrel + done sleep 5s - PORT=3000 check_stopped - PORT=3001 check_stopped - PORT=3002 check_stopped - PORT=3003 check_stopped - PORT=3004 check_stopped + for PORT in $PORTS + do + check_stopped + done } function start_mongrels { - PORT=3000 start_mongrel - PORT=3001 start_mongrel - PORT=3002 start_mongrel - PORT=3003 start_mongrel - PORT=3004 start_mongrel + for PORT in $PORTS + do + start_mongrel + done } function stop_mongrel { |