Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

Detecting graceful restart/stop in child processes

Bill Moseley

2009-12-06

Replies: Find Java Web Hosting

Author LoginPost Reply
I'm running mod_perl/2.0.4 with a very large keep-alive set in my httpd.conf.

Is there a way to detect when a graceful stop or restart has been requested in the child apache processes?
I tried $SIG{USR1} and $SIG{WINCH} but I'm not seeing them catch the signal.

I'd like to be able to detect when a graceful stop or restart has been requested so that I can add a Connection: close header to the response.


--
Bill Moseley
moseley@hank.org
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.