Red Hat Bugzilla – Bug 4729
logrotate fails to rotate in certain circumstance
Last modified: 2008-05-01 11:37:51 EDT
with this test config:
if /path/file.1.gz exists /path/file will not be rotated
for example, /path/file is a web log. After rotation
logresolve is run on /path/file.1 , the log is then
compressed leaving /path/file.1.gz .
possible fix suggestion, if /path/file.1.gz exists, move to
/path/file.2.gz then move /path/file to /path/file.1
probably the same on all arch
tested with 5.2, 6.0, and rawhide as of Aug 18,1999
can you please turn on debugging (run logrotate with -d) and send me
the output? I see that what you have discovered is valid, but I want
to pin down exactly what is happening in the code.
user reports that they were incorrect.