<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Shugo's Blog comments on Graceful Restart with mod_fcgid</title>
    <link>http://blog.shugo.net/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Shugo's Blog comments</description>
    <item>
      <title>"Graceful Restart with mod_fcgid" by shugo</title>
      <description>&lt;p&gt;I tried to restart Rails application gracefully (apachectl graceful) with mod_fcgid, but I couldn't get a response on graceful restart.&lt;/p&gt;

&lt;p&gt;The problems are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;mod_fcgid sends SIGTERM to FastCGI processes on graceful restart, but Rails FastCGI processes exit as soon as it's received SIGTERM (Rails FastCGI processes stop gracefully on SIGUSR1, not SIGTERM).&lt;/li&gt;
&lt;li&gt;Apache child processes exit on SIGUSR1 with mod_fcgid, as soon as it's received a signal.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I created &lt;a href="http://shugo.net/tmp/mod_fcgid.2.0-graceful.diff"&gt;a patch&lt;/a&gt;
to fix these problems, but I'm not sure....&lt;/p&gt;

</description>
      <pubDate>Sat, 25 Aug 2007 00:39:00 JST</pubDate>
      <guid>&lt;a href="/articles/2007/08/25/graceful-restart-with-mod_fcgid"&gt;Graceful Restart with mod_fcgid&lt;/a&gt;</guid>
      <link>&lt;a href="/articles/2007/08/25/graceful-restart-with-mod_fcgid"&gt;Graceful Restart with mod_fcgid&lt;/a&gt;</link>
    </item>
  </channel>
</rss>
