[Catalyst] Anyone using the FastCGI External server in production?

John Wang johncwang at gmail.com
Wed Apr 5 06:54:56 CEST 2006


On 4/4/06, Bill Moseley <moseley at hank.org> wrote:
>
> Anyone using External mode with an application?  Do you use a
> watchdog script to make sure the application keeps running, and to
> restart if it dies?


It would be ideal to use a supervision tool such as runit or daemontools,
however FastCGI and FCGI::ProcManager are not designed to work with these
tools. For straight FastCGI, there's a patch that adds a -supervise option
to cgi-fcgi allowing it to work with runit and daemontools. Here are some
urls that discuss this. The patch is available on the last url.

http://www.fastcgi.com/archives/fastcgi-developers/2005-May/003706.html
http://www.fastcgi.com/archives/fastcgi-developers/2005-May/003720.html
http://rubyists.com/articles/2005/05/03/spawn-fcgi-in-the-foreground

It would be great if Cat and FCGI::ProcManager could be updated to be
supervised. The middle url above says:

> I see this as the most common problem in the Ruby on Rails
>  community utilizing fastcgi, and it seems to occur on
> apache at times, as well.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060404/fc9c8af5/attachment.htm 


More information about the Catalyst mailing list