PHP, Apache, Mongrel cluster

Thomas iamkenzo at gmail.com
Fri Jan 25 18:45:53 MSK 2008


Basically here are the steps:

1) Install daemontools, using this documentation:
http://cr.yp.to/daemontools/install.html. Follow exactly the steps and
use sudo when you think it is needed. It took me a few tries before
correctly installing it. In Ubuntu, the daemontools-installer didn't
work for me.

2) See if svscan is started, if not follow the link I posted for
ubuntu, and replace the dashes in the runlevels with spaces. Now
reboot computer or use: sudo start svscan

3) Then create a directory inside /service I called mine spawn-fcgi,
and inside that directory create a file called run, and use Allen's
template to suit your needs. Make the run file executable.

Then, spawn-fcgi will be automatically started and monitored by
daemontools. Try killing it, and enjoy :-)

On Jan 25, 2008 4:30 PM, Stefanita rares Dumitrescu
<lists at ruby-forum.com> wrote:
> Thomas wrote:
> > nginx + spawn-fcgi + daemontools are now running. spawn-fcgi is
> > invincible, I kept killing it, and it always came back!
> >
> > Thanks Allen and Igor for the tips.
>
> im gonna try getting daemontools running as well :) can you share the
> config for that please?
> --
>
> Posted via http://www.ruby-forum.com/.
>
>





More information about the nginx mailing list