On 4/4/06, <b class="gmail_sendername">Bill Moseley</b> <<a href="mailto:moseley@hank.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">moseley@hank.org</a>> wrote:<div><span class="gmail_quote">
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Anyone using External mode with an application? Do you use a<br>watchdog script to make sure the application keeps running, and to<br>restart if it dies?</blockquote><div><br>
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.<br>
<br>
<a href="http://www.fastcgi.com/archives/fastcgi-developers/2005-May/003706.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.fastcgi.com/archives/fastcgi-developers/2005-May/003706.html
</a><br>
<a href="http://www.fastcgi.com/archives/fastcgi-developers/2005-May/003720.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.fastcgi.com/archives/fastcgi-developers/2005-May/003720.html
</a><br>
<a href="http://rubyists.com/articles/2005/05/03/spawn-fcgi-in-the-foreground" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://rubyists.com/articles/2005/05/03/spawn-fcgi-in-the-foreground</a>
<br>
</div><br>
It would be great if Cat and FCGI::ProcManager could be updated to be supervised. The middle url above says:<br>
<br>
> I see this as the most common problem in the Ruby on Rails<br>
> community utilizing fastcgi, and it seems to occur on<br>
> apache at times, as well.<br>
<br>
John<br>
<span style="font-family: monospace;"></span></div>