You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Craft, Wesley" <We...@titan.com> on 2005/07/21 16:06:37 UTC

[users@httpd] Problem logging SIGTERM to ErrorLog when piping to rotatelogs

This is a strange problem when using rotate logs. We have multiple
apache servers running and the one without rotatelogs being piped to
from the ErrorLog directive reports the following in the error log when
shutting down:
 
     [Wed Jun 15 14:08:46 2005] [notice] caught SIGTERM, shutting down
 
The servers that pipe the ErrorLog through rotatelogs have this (on a
line by itself, no timestamp):
 
     Terminated
 
Starting back up seems normal and all logs are consistant on their
reporting. The Loglevel is set to notice. Running Apache 1.3.33 on SunOS
5.8. I've been unable to find any references to this problem online. Any
thoughts as to what the problem and/or solution may be would be
appreciated. Thanks,
 
Wes 
 

Re: [users@httpd] Problem logging SIGTERM to ErrorLog when piping to rotatelogs

Posted by Joe Orton <jo...@redhat.com>.
On Thu, Jul 21, 2005 at 10:06:37AM -0400, Craft, Wesley wrote:
> This is a strange problem when using rotate logs. We have multiple
> apache servers running and the one without rotatelogs being piped to
> from the ErrorLog directive reports the following in the error log when
> shutting down:
>  
>      [Wed Jun 15 14:08:46 2005] [notice] caught SIGTERM, shutting down
>  
> The servers that pipe the ErrorLog through rotatelogs have this (on a
> line by itself, no timestamp):
>  
>      Terminated

At shutdown the rotatelogs process will be sent SIGTERM along with the 
rest of the process group, so it may exit before the children have to to 
log their shutdown messages (it's a race).  I don't know why it would 
log that line, though, might be something Solaris-specific.

joe

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org