Date: Sun, 13 Jul 2003 14:18:22 GMT From: Mark <admin@asarian-host.net> To: <freebsd-questions@freebsd.org> Subject: Rotation in newsyslog.conf Message-ID: <200307131418.H6DEIMNV049896@asarian-host.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307131418.H6DEIMNV049896>