On Fri, 2003-10-24 at 10:16, Stas Bekman wrote:
> Cory C. Omand wrote:
> 
> Cory, when reporting bugs/asking question, please tell us at least what 
> versions of mp/apache/perl you are using. http://perl.apache.org/bugs/ tells 
> you everything that you need to supply. Thanks.

Apologies -- my configuration is:

Apache 2.0.47 + mod_perl 1.99_10
Solaris 9

> Guessing that you are using mod_perl 2, it's indeed a change in Apache, which 
> now parses httpd.conf even when it stops the server. You get it parsed at 
> least 3 times. 1st time when it starts, 2nd time when it immediately restarts 
> itself and 4rd time when it stops. So it doesn't bother you that your <Perl> 
> sections are run on the second time, but only on the third time?

Correct - It's not really critical, but I was wondering whether there
was some variable set during the parsing operation that indicated what
was happening.  For instance, the <Perl > section sets up some proxy
cache entries with disk cache enabled, and I check to see that the cache
directory exists, creating it if it doesn't already exist.  I don't want
to create directories on shutdown if I can avoid it...

> Also remember that <Perl> sections are designed for adding httpd.conf 
> directives on the fly from perl, not really for running unrelated perl code at 
> the startup, which should be done in startup.pl.

Understood -- I do use startup.pl for those unrelated activities...

-- 
============================================================
C. Omand - CA, USA

Reply via email to