httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject Re: Proposal: a "cron" interface for httpd
Date Thu, 27 Mar 2008 13:18:54 GMT
On Wed, 26 Mar 2008 18:22:51 +0200
Graham Leggett <> wrote:

> Nick Kew wrote:
> > ap_hook_monitor?
> A quick look found the hook, but no comments or other docs on how it 
> works. The only code in the tree using the hook is mod_example_hooks, 
> but it doesn't reveal any information either.
> Is this hook documented anywhere?

It's intended precisely for periodic cron-like jobs.  It's not
synchronised to the clock, but polled every 10 secs (IIRC -
and not guaranteed).  For most jobs you'd want a timer or
counter to run the job at some multiple of 10 secs intervals.

  * It runs in the parent process (root, single-threaded).
  * Take care with the pool - it doesn't get cleaned up.

Nick Kew

Application Development with Apache - the Apache Modules Book

View raw message