Stas Bekman wrote:
>> 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.
One possible workaround, is not to run:
% httpd -k stop
but send SIGTERM directly:
% kill -s TERM `cat httpd.pid`
I've asked on httpd-dev whether it's possible to add a mechanism to know the
state of the process when httpd.conf is parsed.
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
mod_perl Guide ---> http://perl.apache.org
mailto:stas@... http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com