Bug 2378

Summary: USR1 should be used instead of HUP for log rotation
Product: [Retired] Red Hat Raw Hide Reporter: Jay Freeman <saurik>
Component: apacheAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 1.0CC: pekkas
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://www.apacheweek.com/tips/tips
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-11-04 11:04:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jay Freeman 1999-04-26 22:55:41 UTC
I was just readinga tip entitled "Rotating log files without
killing the transactions in progress" in apache week, and
was interested to read:

"Sending the parent Apache process a USR1 signal will make
it close the current log files, and re-open them, without
loosing any connections currently in progress. This should
be used instead of a HUP signal in any log rotation script."
(more information on the page this was taken from at

I decided to go and see what I was currently using (and if
HUP, change it to USR1, add a script or something, etc.),
and noticed that the /etc/logrotate.d/apache file that comes
with rawhide was using HUP.  Might be nice if this were
changed (would probably involve a more complex system though
for the log rotation for the server though as mentioned in
the tip).

Comment 1 Cristian Gafton 1999-07-28 07:22:59 UTC
assigned to pbrown

Comment 2 Preston Brown 1999-08-27 15:11:59 UTC
this will be fixed in the next release (6.1).  Thanks for the report.

Comment 3 Pekka Savola 2000-11-04 11:03:13 UTC
In RHL 7.0, HUP is used instead of USR1.

/var/log/httpd/access_log {
        /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true

Comment 4 Nalin Dahyabhai 2001-01-11 22:34:30 UTC
Documentation at the Apache Group web site states that USR1 doesn't close child
processes, so there may be processes using the log files for an unknown amount
of time after the signal is delivered, which can lead to inconsistencies and

Comment 5 openshift-github-bot 2015-10-07 06:58:47 UTC
Commit pushed to master at https://github.com/openshift/origin

Issue 2378 - Show TLS information for routes, create routes and routes/routename pages