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
Thanks.
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...
There is no provision for this functionality at the moment. I'll try to submit a patch for httpd API and if accepted that we can build on top of it a perl API. We could implement this in mod_perl as well, but it's better to have a C API so to ensure that the feature will be there for years to come.
__________________________________________________________________ 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