in reply to Re: Control over apache processes
in thread Control over apache processes

In addition to Apache::Reload, you can do this sort of thing by having your processes check periodically to see if your configuration file has changed.

Perrin, is it possible to make an Apache process(under mod_perl) do something like this? Basically if we try to achieve this by posting HTTP requests you never know if all the processes will be affected. Correct? So how would you make this periodic polling? Thanks very much for the replies.

Thanks,
Ganesh

Replies are listed 'Best First'.
Re^3: Control over apache processes
by perrin (Chancellor) on Aug 19, 2008 at 16:52 UTC
    Yes, mod_perl is what I'm talking about here (although you could do something similar in any persistent environment). You don't need to contact all processes at once -- you just need them to check for this when they do get a request. In other words, make all of your processes check at the beginning of any new request for a change in their environment and take action if they discover one.