Doug MacEachern wrote:
> On Fri, 21 Jun 2002, Stas Bekman wrote:
> 
> 
>>$Apache::Server::Starting, $Apache::Server::ReStarting are "scheduled" 
>>to be deprecated. What's the replacement?
> 
> 
> there is no replacement.  no code should make assumptions based on such 
> values.  it caused a great deal of trouble for modperl 1.x in the past, 
> mod_ssl suffered similar problems that were removed in 2.0.

what kind of problem?

> what is it you are trying to do?

Nothing much, just want to do something on server 'start'. The Apache's 
immediate restart is not a logical thing, but an internal thing. I still 
want to distinguish between logical start (the server starts when it 
wasn't running) and restart (the server restarts when it was already 
running). This is an important distinction for administration needs. 
I'll give you an example:

I want to be notified by email when the server restarts, and I pay 
special attention to those notifications because that usually means that 
something went wrong and the watchdog restarted the server. However I 
don't want to get this kind of notifications when the server didn't run 
and just starting.

Well, I guess this is not the best example, but you get the idea.

The punch line is that user can code this logic by himself, by checking 
the flag in the pconf pool, which can be set on start. But I see no 
reason why not giving users this as an internal flag.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to