You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Stas Bekman <st...@stason.org> on 2004/12/02 19:41:07 UTC

kill -HUP vs. httpd -k graceful

Is there a difference between kill -HUP and httpd -k graceful? One user 
has reported problems with using kill -HUP

    [Fri Nov 19 00:00:05 2004] [warn] child process 12783 still did not
    exit, sending a SIGTERM
    [Fri Nov 19 00:00:05 2004] [notice] SIGHUP received.	Attempting to
    restart
    panic: pthread_key_create	

and dumps core...

whereas httpd -k graceful doesn't have this problem.

Unfortunately I can't tell you which MPM he was using, since he didn't 
bother to tell.

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Re: kill -HUP vs. httpd -k graceful

Posted by Stas Bekman <st...@stason.org>.
Jeff Trawick wrote:
> On Thu, 02 Dec 2004 13:41:07 -0500, Stas Bekman <st...@stason.org> wrote:
> 
>>Is there a difference between kill -HUP and httpd -k graceful? One user
>>has reported problems with using kill -HUP
> 
> 
> graceful uses signal USR1; ungraceful restart uses HUP; 

Thanks Jeff.

> not expected that HUP would cause a crash

It's quite expected if it's ungraceful. I've reported this problem long 
long time ago. If something is run for longer than the shutdown is willing 
to wait after SIGKILL was sent (e.g. pool cleanups), SIGTERM is sent
and then crashes are normal. I can easily reproduce that at will.

Please see:
http://issues.apache.org/bugzilla/show_bug.cgi?id=23238

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Re: kill -HUP vs. httpd -k graceful

Posted by Jeff Trawick <tr...@gmail.com>.
On Thu, 02 Dec 2004 13:41:07 -0500, Stas Bekman <st...@stason.org> wrote:
> Is there a difference between kill -HUP and httpd -k graceful? One user
> has reported problems with using kill -HUP

graceful uses signal USR1; ungraceful restart uses HUP; not expected
that HUP would cause a crash