Re: Cleanup when server is stopped vs reconfigured

2016-03-29 Thread Yann Ylavic
On Tue, Mar 29, 2016 at 1:39 PM, Tony Abo wrote: >> > Is there a way to run some cleanup code in a module when the server is >> being stopped, but not being restarted? Or, can a cleanup handler in a loaded >> module determine whether the server is being shut down or restarted? >> >> With 2.4.x, yo

RE: Cleanup when server is stopped vs reconfigured

2016-03-29 Thread Tony Abo
> > Is there a way to run some cleanup code in a module when the server is > being stopped, but not being restarted? Or, can a cleanup handler in a loaded > module determine whether the server is being shut down or restarted? > > With 2.4.x, you could use the ap_pglobal pool. > > Beware this shou

Re: Cleanup when server is stopped vs reconfigured

2016-03-29 Thread Yann Ylavic
On Tue, Mar 29, 2016 at 9:40 AM, Yann Ylavic wrote: > On Tue, Mar 29, 2016 at 3:01 AM, Tony Abo wrote: >> >> Is there a way to run some cleanup code in a module when the server is being >> stopped, but not being restarted? Or, can a cleanup handler in a loaded >> module determine whether the se

Re: Cleanup when server is stopped vs reconfigured

2016-03-29 Thread Yann Ylavic
On Tue, Mar 29, 2016 at 3:01 AM, Tony Abo wrote: > > Is there a way to run some cleanup code in a module when the server is being > stopped, but not being restarted? Or, can a cleanup handler in a loaded > module determine whether the server is being shut down or restarted? With 2.4.x, you coul

Cleanup when server is stopped vs reconfigured

2016-03-28 Thread Tony Abo
I have a DSO module which establishes a custom handler. The handle fires up external process which perform the work for certain requests. Those processes contain a lot of state information for user application sessions. We want to have some cleanup code that will shutdown those processes cleanly