Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 2009 15:28:37 +0200
From:      Mel Flynn <mel.flynn+fbsd.current@mailing.thruhere.net>
To:        freebsd-current@freebsd.org
Cc:        Tim Kientzle <kientzle@freebsd.org>, Dmitry Morozovsky <marck@rinet.ru>, Garance A Drosehn <gad@freebsd.org>
Subject:   Re: newsyslog(8) patch for both size and time checks
Message-ID:  <200905161528.37502.mel.flynn%2Bfbsd.current@mailing.thruhere.net>
In-Reply-To: <p06240804c632166c0de5@[128.113.24.47]>
References:  <alpine.BSF.2.00.0905121354450.1756@woozle.rinet.ru> <200905132157.14906.mel.flynn%2Bfbsd.current@mailing.thruhere.net> <p06240804c632166c0de5@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 14 May 2009 20:48:55 Garance A Drosehn wrote:
> At 9:57 PM +0200 5/13/09, Mel Flynn wrote:
> >On Wednesday 13 May 2009 00:29:36 Tim Kientzle wrote:
> >>  If compatibility is essential, perhaps we could
> >>  add a new flag to control this behavior.  (I would
> >>  argue for changing the default and providing a flag
> >>  to obtain the old behavior.)
> >
> >Fine on the flag, maybe mergemaster could be a little more assisting in
> > this case, since I'm not looking forward to "just adding a flag". Like
> > mergemaster -p could auto-upgrade the lines that have both columns with
> > values?
>
> Somewhere on one of my machines, I started on a update which made
> it pay attention to multiple lines, and "or" those.  So:
>
> /var/log/dhcpd			640  5     5000	*	JC
> /var/log/dhcpd			 "   "     *	@T00	JC
>
> would mean "rotate if either condition is true".  My thinking was
> that I might also like to:
>
> /var/log/dhcpd			640  5     1000	@T00	JC
> /var/log/dhcpd			 "   "     5000	*	JC
>
> That would say that I *generally* prefer that the log is rotated at
> midnight, but if something goes wild during the day then let's start
> rotating them faster.

Thanks for your work on this. This looks like the best solution to me and 
clear to read.
-- 
Mel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905161528.37502.mel.flynn%2Bfbsd.current>