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

Re: newsyslog question...



On Thu, Sep 11, 2003 at 11:12:09AM +0200, Xavier wrote:
> I've a problem with a logfile rotation using newsyslog.
> I need a log file restarted every midnight (for reporting purpose).
> In my /etc/newsyslog.conf, I've something like:
> 
> /var/log/maillog                        600  7    *    24    Z
> 
> This should rotate the file every 24 every without size limit but how to force a rotation at midnight?
> (actually the file is saved at 19:00)

>From the newsyslog(4) manual:

     when              The when field can consist of an interval, a specific
                       time, or both.
[...]

                     Some examples:
                             $D0     rotate every night at midnight (same as
                                     @T00)


I might have read it wrong, but it also says "The ranges for day
and hour specifications are: hh hours, range 0 ... 23", which
makes me wonder what "24" means.


Andreas

-- 
Andreas Kähäri
East Anglia, England