Hehe, you beat me to it on the syslog-ng stuff, my example writing took to long :-) Good work!

Covington, Chris wrote:
Hopefully this will take care of it.  Now the original question:  How
can I make sure the 'weekly' logrotate happens on Sunday morning and not
Monday, Tuesday, etc.?

From the logrotate man page:

*weekly*
Log files are rotated if the current weekday is less then the weekday of the last rotation or if more then a week has passed since the last rotation. This is normally the same as rotating logs on the first day of the week, but it works better if logrotate is not run every night.


So, one option would be to move the logrotate.cron script to cron.weekly, but since that runs on Saturday instead of Sunday you'd either have to change when cron.weekly runs (the "rm" lines in crontab) or do like that original example. *shrug*

--
[email protected] mailing list



Reply via email to