httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Silviu Andrica <silviu.andr...@gmail.com>
Subject Re: [users@httpd] Why is apache running after doing apachectl -k stop
Date Fri, 23 Mar 2012 00:14:49 GMT
Thanks for the replies.

I had the impression that apachetcl -k stop will not return until httpd stopped.

Cheers,
Silviu
On Mar 22, 2012, at 23:45 , Daniel Ruggeri wrote:

> On 3/22/2012 4:58 PM, Igor Cicimov wrote:
>> Thats too fast not all threads can close in just miliseconds you know.
>> Add "sleep 5" between stop and start and you should be fine.
> 
> The only concern with waiting for 5 seconds is that it might not be
> enough if a request is still finishing up.
> 
> I often have the same problem. I implement this inside my apachectl
> scripts after sending a shutdown signal:
> while [ -f $PIDFILE];do echo sleep;sleep 1;done
> 
> It keeps the script spinning until httpd removes the pidfile and also
> lets you know how many times it sleeps. This is particularly useful when
> scripting startup/shutdowns.
> 
> -- 
> Daniel Ruggeri
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message