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.

I have a <Perl > section in my apache configuration file -- when apache
starts up, it prints out some configuration details as it modifies the
configuration.  I noticed today while stopping via apachectl for the
first time (rather than restarting) that the Perl section is evaluated
on shutdown as well, which is really not what I want to do.

Is there anything I can check in a Perl section that will indicate what
'mode' the configuration file is being read for -- start, reload, stop,
etc?

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?


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.

__________________________________________________________________
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



Reply via email to