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

Re: /etc/newsyslog question



On Mon, 2 Apr 2001, Jason Hunt wrote:

> I have the following in /etc/newsylog for messsages:
  logfilename              (owner.group)  mode ngen size time  [ZBM] notify
> /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.

ngen 24 keeps 24 copies of the rotated files. Time should be a number of
hours since the last time the log was trimmed, e.g. 744 for one month.

In my newsyslog (from 2.8 stable or revision 1.34) struct conf_entry
defines hours as an integer and parses hours as -1 if the entry in case
is not a digit (is_digit(3)).

<!-- ---------------------- 72 characters -------------------------- -->
                   Heikki Korpela -- heko@saitti.net