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:mobi...@public.gmane.org (mobi@public.gmane.org)
Date:Jan 30, 2008 5:56:35 pm
List:ru.sysoev.nginx

Please share spawn fcgi run file for multiple python backends 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 & ~

Starting the backends supervise service

http://www.google.com/search?hl=en&client=mozilla&rls=org.mozilla%3Aen-US%3Aunofficial&q=daemontools-nginx&btnG=Search incidentally what is daemontools-nginx then?

Thanks cliff so the best practises for python backends is daemontools supervise? thanks a lot

On Jan 30, 2008 4:03 PM, Cliff Wells
<clif@public.gmane.org> wrote:

On Wed, 2008-01-30 at 15:55 -0800,
mobi@public.gmane.org wrote:

Running nginx with daemontools Hey guys I m trying to figure out how to run nginx and the backends using supervise in daemon mode the idea is to run the fastcgi backends in supervise daemonzied mode so that if they get killed due to memory leaks or overload or whatever error they can be rebooted by supevise automatically wtihout human intervention thanks for sharing ideas

I think the best idea is to *not* run Nginx under daemontools. But by all means run your FCGI processes under it since Nginx won't automatically restart them if they die.

Regards, Cliff