httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "César Leonardo Blum Silveira" <cesa...@gmail.com>
Subject Re: Module initialization
Date Wed, 01 Aug 2007 21:50:32 GMT
Is preconfig code run only once, not being run again even on a restart?

On 8/1/07, Tim Bray <Tim.Bray@sun.com> wrote:
>
> On Aug 1, 2007, at 1:48 PM, Farokh Irani wrote:
>
> > I must just be dense, but I've spent a whole bunch of time trying
> > to figure exactly how I can put initialization code into my module.
> > It's code that needs to run only once when apache (2.2.x) is
> > starting up, so any pointers would be appreciated.
>
> ap_hook_pre_config(your_routine, NULL, NULL, APR_HOOK_MIDDLE)
>
> static int your_routine(apr_pool_t * p_conf, apr_pool_t * p_log,
> apr_pool_t * p_temp);
>
>
>
>


-- 
César L. B. Silveira
http://cesarbs.wordpress.com/

Mime
View raw message