Doug MacEachern wrote:
> On Fri, 21 Jun 2002, Stas Bekman wrote:
>
>
>>what kind of problem?
>
>
> mod_ssl for example would segfault if added to httpd.conf of a server that
> was started without it, couldn't change server certs/keys, etc.
>
> for mod_perl, much of dso nightmare(s) was caused by these assumptions.
well, this is just giving the user enough rope...
>>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).
>
>
> that's part of the problem, you can't distinguish. consider when httpd
> has been started without modperl, then modperl is added to httpd.conf and
> a restart signal given to httpd.
that's true.
>>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.
>
>
> so if you're lucky, you get two less emails if supported the {Re}Starting
> variables. i don't see the point.
well, there may be a point, if these emails trigger some actions.
>>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.
>
>
> i don't see any reason to attempt setting such an internal flag.
> or to suggest one to use such logic.
Well, it seems that now it's getting even more messed up, as recently
apache has been changed to run config scan on 'stop', should this status
be ignored as well? (flag wise?)
> i'm also drawing blanks on why the variables were introduced in the first
> place, maybe that would shed some light?
I think the problem was with some Perl code being run twice as
undesirable. so you may want to skip on start, but run the code only on
restart.
__________________________________________________________________
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]