Dear All,

O/S: RHEL4
Apache Version: 2.2.9

Re: Apache Restart after Log Rotation

I have recently, on a couple of occasions experienced a situation where Apache 
would hang after performing a standard log rotation process.

After rotation using standard kill-HUP to restart Apache.
    postrotate
        /bin/kill -HUP `cat /usr/local/apache/logs/httpd.pid 2>/dev/null` 2> 
/dev/null || true
    endscript

The situation always starts after the log rotation and there is a child process 
that isn't stopped in the normal grace period, then the parent process 
takes appropriate measures to stop it, first using SIGTERM and then finally 
SIGKILL.
The apache process then stops as normal, however does not start-up again and 
the start-up has to be done manually.
I have only noticed this twice in the past couple of months, however it would 
be very useful if someone could offer an insight into this behaviour or 
if anyone else has experienced this.

Error.log from the time:
****
[Sun Mar 14 00:00:01 2010] [notice] Digest: generating secret for digest 
authentication ...
[Sun Mar 14 00:00:01 2010] [notice] Digest: done
[Sun Mar 14 00:00:02 2010] [notice] Apache/2.2.9 (Unix) mod_ssl/2.2.9  
configured -- resuming normal operations
[Sun Mar 14 00:00:15 2010] [warn] child process 5975 still did not exit, 
sending a SIGTERM
[Sun Mar 14 00:00:17 2010] [warn] child process 5975 still did not exit, 
sending a SIGTERM
[Sun Mar 14 00:00:19 2010] [warn] child process 5975 still did not exit, 
sending a SIGTERM
[Sun Mar 14 00:00:21 2010] [error] child process 5975 still did not exit, 
sending a SIGKILL
[Sun Mar 14 00:00:22 2010] [notice] caught SIGTERM, shutting down


[Sun Mar 14 02:21:37 2010] [warn] Init: Session Cache is not configured [hint: 
SSLSessionCache]
[Sun Mar 14 02:21:37 2010] [notice] Digest: generating secret for digest 
authentication ...
[Sun Mar 14 02:21:37 2010] [notice] Digest: done
[Sun Mar 14 02:21:38 2010] [notice] Apache/2.2.9 (Unix) mod_ssl/2.2.9 
configured -- resuming normal operations
****


Kind Regards,

Sean O'Brien


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [email protected]
   "   from the digest: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to