Nginx+daemontools
mobiledreamers at gmail.com
mobiledreamers at gmail.com
Thu Jan 31 05:20:08 MSK 2008
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
Error
it keeps trying to restart the backends since
On 1/30/08, mobiledreamers at gmail.com <mobiledreamers at gmail.com> wrote:
>
>
> 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?
>
> On 1/30/08, mobiledreamers at gmail.com <mobiledreamers at gmail.com> wrote:
> >
> > Thanks cliff so the best practises for python backends is daemontools
> > supervise?
> > thanks a lot
> >
> > On Jan 30, 2008 4:03 PM, Cliff Wells <cliff at develix.com> wrote:
> >
> > >
> > > On Wed, 2008-01-30 at 15:55 -0800, mobiledreamers at gmail.com 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
> > >
> > >
> > >
> > >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080130/175db794/attachment.html>
More information about the nginx
mailing list