httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <>
Subject Re: load modules at run-time without restarting httpd
Date Thu, 20 Nov 2008 08:12:36 GMT
Sorin Manolache wrote:
>> They expect their initialization to occur when there is nothing but a parent
>> process present.
> True, but if you send SIGUSR1 to the parent apache process, the
> children will exit gracefully and the parent will remain alone. Then,
> it will unload the DSOs (the modules) and reload them. At reload, it
> will reload the new module. I tried it (but on a server with no
> load---I don't know how it behaves/how long it takes on a server that
> is processing tens of thousands of requests at the moment of the
> SIGUSR1) and it worked.

Right, you are effectively restarting the server.  The difference is,
the server continues to serve out pages using the old workers until all
the outstanding requests are satisfied.  Still, you cannot load a module
into the running workers.

View raw message