Re: How to determine if a graceful restart is initiated from within a module
Hi Colm, We have a customer who wants cgi scripts to be killed after a graceful restart after 'some' time. So I am implementing a timer that will be configurable so that after that time has elapsed cgid can terminate the child cgi processes that are still around. For that I need to know if it is a graceful restart and I am looking at ways of getting that information. Regards, Kiran Colm MacCarthaigh wrote: Apologies for the late reply, I was actually looking at this codeyesterday, and no there is no convienent way to do it, but why is thatyou want to ?It'll take some form of IPC to do this, but I'm shortly about to startwriting a complete replacement for mod_cgid which we may or may not endup using, so it'd be useful to have feedback on why you need to do thisand what additional requirements we can try and fulfill.On Thu, Nov 24, 2005 at 06:17:34PM +0530, Kiran Mendonce wrote: I wanted to add that I am working om mod_cgid and thats where I want to check if it is a graceful restart. I did some more investigation and found that listener_may_exit is not set during a graceful restart for cgid which is why ap_graceful_stop_signalled() does not return 1. Is there any way I can find if it is a graceful restart in mod_cgid ?Thanks and Regards,KiranKiran Mendonce wrote: Hi,I'd like to know how a module can determine if a graceful restart has been issued. I tried using the ap_mpm_query() and the ap_graceful_stop_signalled() APIs but I have'nt really been able to get what I want. ap_mpm_query() always returns 0 on graceful/restart/stop conditions and ap_graceful_stop_signalled() does not return 1 on graceful restart.So I'm confused what to do. Any suggestions ?Thanks and Regards,Kiran
Re: How to determine if a graceful restart is initiated from within a module
Apologies for the late reply, I was actually looking at this code yesterday, and no there is no convienent way to do it, but why is that you want to ? It'll take some form of IPC to do this, but I'm shortly about to start writing a complete replacement for mod_cgid which we may or may not end up using, so it'd be useful to have feedback on why you need to do this and what additional requirements we can try and fulfill. On Thu, Nov 24, 2005 at 06:17:34PM +0530, Kiran Mendonce wrote: > I wanted to add that I am working om mod_cgid and thats where I want to > check if it is a graceful restart. I did some more investigation and > found that listener_may_exit is not set during a graceful restart for > cgid which is why ap_graceful_stop_signalled() does not return 1. Is > there any way I can find if it is a graceful restart in mod_cgid ? > > Thanks and Regards, > Kiran > > Kiran Mendonce wrote: > > >Hi, > > > >I'd like to know how a module can determine if a graceful restart has > >been issued. I tried using the ap_mpm_query() and the > >ap_graceful_stop_signalled() APIs but I have'nt really been able to > >get what I want. ap_mpm_query() always returns 0 on > >graceful/restart/stop conditions and ap_graceful_stop_signalled() does > >not return 1 on graceful restart. > > > >So I'm confused what to do. Any suggestions ? > > > >Thanks and Regards, > >Kiran > > > > > -- Colm MacCárthaighPublic Key: [EMAIL PROTECTED]
Re: How to determine if a graceful restart is initiated from within a module
I wanted to add that I am working om mod_cgid and thats where I want to check if it is a graceful restart. I did some more investigation and found that listener_may_exit is not set during a graceful restart for cgid which is why ap_graceful_stop_signalled() does not return 1. Is there any way I can find if it is a graceful restart in mod_cgid ? Thanks and Regards, Kiran Kiran Mendonce wrote: Hi, I'd like to know how a module can determine if a graceful restart has been issued. I tried using the ap_mpm_query() and the ap_graceful_stop_signalled() APIs but I have'nt really been able to get what I want. ap_mpm_query() always returns 0 on graceful/restart/stop conditions and ap_graceful_stop_signalled() does not return 1 on graceful restart. So I'm confused what to do. Any suggestions ? Thanks and Regards, Kiran
How to determine if a graceful restart is initiated from within a module
Hi, I'd like to know how a module can determine if a graceful restart has been issued. I tried using the ap_mpm_query() and the ap_graceful_stop_signalled() APIs but I have'nt really been able to get what I want. ap_mpm_query() always returns 0 on graceful/restart/stop conditions and ap_graceful_stop_signalled() does not return 1 on graceful restart. So I'm confused what to do. Any suggestions ? Thanks and Regards, Kiran