Red Hat Bugzilla – Bug 34230
Apache rendomly dies
Last modified: 2007-04-18 12:32:29 EDT
The apache-1.3.19-2 occasionally dies.
This is a message in error_log:
[Sat Mar 31 07:00:43 2001] [error] (32)Broken pipe: accept: (client socket)
And this is it. Server died after this.
This problem seems to be related to
restarting the server.
First, multiple HUP signals from /etc/logrotate.d/apache
may easily kill the server.
(when next -HUP is delivered when first -HUP is is still processing)
Second from time to time a SINGLE HUP signal kills the apache.
This is a command which sometime JUST KILLS apache
when executed manually.
kill -HUP `cat /var/run/httpd.pid`
Another thing I would recommend to change in
is to replace multiple entries
by a single one
/var/log/httpd/access_log /var/log/httpd/error_log /var/log/httpd/agent_log
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null ||
This will prevent killing apache by delivering multiple -HUP signals
Thanks! This'll be integrated into apache-1.3.19-6 and later.