Bug 179155 - logrotate compresses before postrotate is called
Summary: logrotate compresses before postrotate is called
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: logrotate
Version: 4.0
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: Peter Vrabec
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-27 20:05 UTC by Chris Adams
Modified: 2015-01-08 00:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-01-30 10:15:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chris Adams 2006-01-27 20:05:50 UTC
Having "sharedscripts" in a logrotate config section means that the postrotate
script is NOT called before the files are compressed.  This leads to lost log
entries; if you have a couple of large log files every day, for example maillog
and secure, entries logged to maillog between the time it is compressed and the
time secure is compressed are lost.

This is the documented behavior of logrotate.  Either logrotate needs to be
changed or "sharedscripts" should be removed from the standard logrotate config
files.

Comment 1 Peter Vrabec 2006-01-30 10:15:23 UTC
There is a delaycompress option to fix this behavior in older(<3.7.2-3) logrotates.


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