Rotation in newsyslog.conf
Mark
admin at asarian-host.net
Sun Jul 13 07:18:27 PDT 2003
Hello,
I have an entry in /etc/crontab, that looks like this:
----------------------------------
# rotate log files every hour, if necessary
0,45 * * * * root newsyslog
----------------------------------
I added an extra rotation-cycle, at 45, after the example of adjkerntz:
----------------------------------
# See adjkerntz(8) for details.
1,31 0-5 * * * root adjkerntz -a
----------------------------------
Then, in /etc/newsyslog.conf, I added the following:
----------------------------------
/var/log/maillog 644 2 * @T00 Z
/var/log/messages 644 1 * @T2345 B
----------------------------------
Yet, when I check the maillog, I see this:
Jul 11 00:45:00 asarian-host newsyslog[26888]: logfile turned over
Jul 12 00:45:00 asarian-host newsyslog[77950]: logfile turned over
/var/log/maillog, apparently, rotates at 00:45, instead of at 00:00, as it
was supposed to! Or does it AGAIN rotate at 00:45? I thought "@T00" meant:
at midnight, and at midnight only.
Does anyone have a clue?
Thanks!
- Mark
More information about the freebsd-questions
mailing list