Loading ...
Sorry, an error occurred while loading the content.

Re: Apache::PerlSection Question

Expand Messages
  • Stas Bekman
    ... 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
    Message 1 of 5 , Oct 24, 2003
    • 0 Attachment
      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
      http://stason.org/ 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
    Your message has been successfully submitted and would be delivered to recipients shortly.