Red Hat Bugzilla – Bug 144614
weekly log rotation
Last modified: 2007-11-30 17:10:58 EST
logrotate 220.127.116.11 and earlier
It would make more sense to me to use the following test for when to
rotate a log entry - line 431 and ff.
state->doRotate = ((now.tm_wday ==
(6 * 24 * 3600)));
That way, you can configure your logrotate.status file to have logs
rotate on a particular day of the week and it will happen if at least
1 week has passed from the last log rotate - but will stay on the same
day. On the rare times that the system is down on the logrotate day,
they wouldn't rotate that week. You would be back on track the next
week or could do a force in those situations. Otherwise, you stay on
your schedule instead of everything happening on Sunday morning.
Change back to future feature and update to reflect still the same in FC5
Sorry, I don't want to change it your way. It doesn't make sense to rotate logs only on
particular day. For me make more sense to rotate logs if more than a week has passed since
the last rotation.