Hi,
I agree with the original submitter (Carsten Otto) that the man page and
the code don't match. The code does these steps (if applicable):
1. Rotate (rename) the log file
2. Call the post-rotate script
3. Compress the rotated (renamed) log file
One part of the man page implies that the code does the above in the
order 1, 3, 2, as it says:
The sharedscripts means that the postrotate script
will only be run once (after the old logs have been
*compressed*), not once for each log which is rotated.
It should say instead:
The sharedscripts means that the postrotate script
will only be run once (after the old logs have been
*rotated*), not once for each log which is rotated.
The man page also says:
After the log file has been rotated (but before the old
version of the log has been compressed), the command
/sbin/killall -HUP syslogd will be executed.
This section correctly describes the code. The only confusion arises
from the "sharedscripts" statement quoted above.
Clearly, the code is doing the right thing, as changing the order to 1,
3, 2 introduces a race condition where entries written to the old file
after the compression finishes but before the post-rotate script is
called would be lost.
Thanks,
Joel
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org