Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2012 20:10:08 GMT
From:      Marco Steinbach <coco@executive-computing.de>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/166448: [patch] newsyslog(8): newsyslog -t fails to find previous rotated log
Message-ID:  <201205232010.q4NKA8bT027813@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/166448; it has been noted by GNATS.

From: Marco Steinbach <coco@executive-computing.de>
To: bug-followup@FreeBSD.org
Cc: eugen@grosbein.pp.ru
Subject: Re: bin/166448: [patch] newsyslog(8): newsyslog -t fails to find
 previous rotated log
Date: Wed, 23 May 2012 21:56:51 +0200

 I'm running into this, also.  Logrotation is done upon every invocation 
 of newsyslog(8), if 'when' is given as purely numerical hour interval, 
 and an alternate timeformat is used.
 
 E.g.:
 
 p90a1# newsyslog -t %Y%m%d_%H%M%S
 p90a1# ls -1 /var/log/sendmail.st.20*
 /var/log/sendmail.st.20120523_201321
 
 p90a1# newsyslog -t %Y%m%d_%H%M%S
 p90a1# ls -1 /var/log/sendmail.st.20*
 /var/log/sendmail.st.20120523_201321
 /var/log/sendmail.st.20120523_201343
 
 I've been successfuly using Eugenes patch against newsyslog(8) for about 
 24 hours now on 8.3 and 9.0 (second hunk needs to be moved for patching 
 9) i386/amd64 systems, tossing quite some logs around with and without 
 using alternate timeformats.
 
 
 MfG CoCo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205232010.q4NKA8bT027813>