Date: Thu, 06 Nov 2014 12:33:00 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 194864] New: newsyslog(8) does not delete old files after config change Message-ID: <bug-194864-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194864 Bug ID: 194864 Summary: newsyslog(8) does not delete old files after config change Product: Base System Version: 10.0-STABLE Hardware: amd64 OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: rs@bytecamp.net Lets assume the following entry in /etc/newsyslog.conf: /var/log/httpd-suexec.log 640 14 * @T00 JC After 14 days, there are 14 compressed files httpd-suexec.N.log.bz2 in /var/log. Now lower the count from 14 to 7: /var/log/httpd-suexec.log 640 7 * @T00 JC One may assume, that newsyslog will delete 7 files in the next run, since there should only be kept 7 old logfiles. But it doesn't, it just deletes the 8th old logfile (httpd-suexec.log.7.bz2) and keeps httpd-suexec.log.{8,9,10,11,12,13}.bz2. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194864-8>