[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: newsyslog question...
On Thu, 2003-09-11 at 11:12, 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.conf(8) manual page ->
Some examples:
$D0 rotate every night at midnight (same as @T00)
--
/* Joris Vink */
/* Programmer / Designer / OpenBSD Support */
Usefull site's
http://www.OpenBSD.org
http://www.Deadly.org