On Wed, 10 Jan 2001, Dave Rolsky wrote:

> On Wed, 10 Jan 2001, G.W. Haywood wrote:
>
> > Don't you get a message in error_log to the effect that a signal has
> > been received?
>
> Sure, but I don't think that would help me do what I want.
>
> Let me illustrate:
>
> 1.  server is started
> 2.  config is read, modules are loaded, BEGIN blocks are run in this
> process (just once)
> 3.  X children are created
> 4.  children are born, they die, yadda yadda.  The END block is run
> whenever a child dies.
> 5.  the server is told to shut down
> 6.  the first server to start (the one running as root or whatever) sends
> signals to the children telling them to shutdown.  END blocks run in all
> children.
> 7.  the first server shuts down - I'd like to run something here because
> it should only be happening to during a 'final' shutdown and only after
> the children have finished serving their last requests.

All we need is to add a $Apache::Server::Quitting or alike, in addition to
the existing $Apache::Server::Starting and $Apache::Server::ReStarting,
should be an easy patch in XS.

>
>
> -dave
>
> /*==================
> www.urth.org
> We await the New Sun
> ==================*/
>



_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


Reply via email to