httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodent of Unusual Size <Ken.C...@Golux.Com>
Subject prototype for worker graceful *shutdown*
Date Fri, 28 Mar 2003 20:34:52 GMT
the attached patch, based on one bill started, presses SIGINT
into service as a 'graceful shutdown' signal.  (alternative
suggestions highly welcomed.)  if the config directive
GracefulShutdownTimeout is set (default is 10), when the
server is sent a SIGINT it will go into shutdown mode but
not actually go all the way down until that many seconds have
passed.  SIGTERM works normally for a graceless shutdown.

i'd rather not re-add another signal, but oh well.. the
alternative is to set GracefulShutdownTimeout to zero as
the default (either in .c or .conf) to keep the current
behaviour -- but then to take advantage of it you'd need to
edit the .conf file, do a restart, and then do a shutdown.
bleah.

expansion to other mpms and command-line interface waiting
for non-vetoed acceptance of this proof-of-concept.
-- 
#ken	P-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist      http://Apache-Server.Com/

"Millennium hand and shrimp!"

Mime
View raw message