14 messages in ru.sysoev.nginxRe: Nginx+daemontools
FromSent OnAttachments
mobi...@public.gmane.orgJan 30, 2008 3:55 pm 
Cliff WellsJan 30, 2008 4:03 pm 
Casey RaymanJan 30, 2008 4:06 pm 
mobi...@public.gmane.orgJan 30, 2008 4:07 pm 
mobi...@public.gmane.orgJan 30, 2008 4:10 pm 
Eden LiJan 30, 2008 4:52 pm 
mobi...@public.gmane.orgJan 30, 2008 5:56 pm 
mobi...@public.gmane.orgJan 30, 2008 6:19 pm 
Casey RaymanJan 30, 2008 7:43 pm 
Igor SysoevJan 30, 2008 10:04 pm 
Grzegorz NosekJan 31, 2008 12:08 am 
ThomasJan 31, 2008 1:46 am 
Mike LottJan 31, 2008 3:47 am 
ThomasJan 31, 2008 4:31 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Nginx+daemontoolsActions...
From:Grzegorz Nosek (grze@public.gmane.org)
Date:Jan 31, 2008 12:08:52 am
List:ru.sysoev.nginx

On Wed, Jan 30, 2008 at 06:20:08PM -0800,
mobi@public.gmane.org wrote:

it is not working with spawn-fcgi since spawnfcgi spawns a child and exits so supervise keeps trying to spawn childs continuously

service/run #!/bin/sh cd /home/mark/work/code

exec /opt/local/bin/spawn-fcgi -f /home/mark/work/code/code.py -p 9500 > /tmp/restart.log 2>&1 & exec cat /tmp/restart.log & exec /opt/local/bin/spawn-fcgi -f /home/mark/work/code/code.py -p 9501 > /tmp/restart.log 2>&1 & exec cat /tmp/restart.log &

exec /opt/local/bin/spawn-fcgi -f /home/mark/work/code/code.py -p 9502 > /tmp/restart.log 2>&1 & exec cat /tmp/restart.log &

exec /opt/local/bin/spawn-fcgi -f /home/mark/work/code/code.py -p 9503 > /tmp/restart.log 2>&1 ^ exec cat /tmp/restart.log &

Try removing those cats (leaving only the spawn-fcgi lines) and adding:

wait

to the very end of the script (not tested).