Bug 2378 - USR1 should be used instead of HUP for log rotation
Summary: USR1 should be used instead of HUP for log rotation
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: apache
Version: 1.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact:
URL: http://www.apacheweek.com/tips/tips
Depends On:
TreeView+ depends on / blocked
Reported: 1999-04-26 22:55 UTC by Jay Freeman
Modified: 2015-10-07 06:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2000-11-04 11:04:35 UTC

Attachments (Terms of Use)

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

Note You need to log in before you can comment on or make changes to this bug.