[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: /etc/newsyslog question



Read newsyslog(8) for FreeBSD and OpenBSD.
(Use http://www.FreeBSD.org/cgi/man.cgi for both.)
You'll see the "when" field of FreeBSD is quite
different from the "archive interval" of OpenBSD.

Mike

-----Original Message-----
From: Jason Hunt [mailto:jason.hunt@niicommunications.com]
Sent: Monday, April 02, 2001 10:23 AM
To: misc@openbsd.org
Subject: /etc/newsyslog question


I have the following in /etc/newsylog for messsages:

/var/log/messages                       644  24   *    $MLDO Z

I assumed that this would cause /var/log/messages to be rotated on
last day of the month.  Evidently not.  I used the same format
of FreeBSD, and I couldn't find what ngen meant in man pages for
newssyslog.

My crontab has this entry:

# rotate log files every hour, if necessary
0       *       *       *       *       /usr/bin/newsyslog

anyone?