Date: Thu, 22 Jul 2010 11:23:18 +0000 (UTC) From: "Simon L. Nielsen" <simon@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.sbin/newsyslog newsyslog.8 newsyslog.c Message-ID: <201007221123.o6MBNVcX038832@repoman.freebsd.org>
index | next in thread | raw e-mail
simon 2010-07-22 11:23:18 UTC
FreeBSD src repository
Modified files:
usr.sbin/newsyslog newsyslog.8 newsyslog.c
Log:
SVN rev 210372 on 2010-07-22 11:23:18Z by simon
Add support for creating the archived log filenames using a time-stamp
instead of the traditional simple counter.
Using the time-stamp based file-names, once a log file is archived, it
will not change name until it is deleted. This means that many backup
systems will only perform one backup of the archived log file, instead
for performing a new backup of the logfile upon each logfile rotation.
This implementation is separate from the patches in the mentioned PR,
as I wasn't aware of the existence of the PR until after I had
implemented the same functionality as the patches in the PR provide.
Unlike the PR, this new code does honor the 'log count' in
newsyslog.conf so old logfiles are deleted. This new code does not
currently support never deleting the archived logfiles.
PR: bin/29363
MFC after: 3 weeks
Revision Changes Path
1.54 +31 -0 src/usr.sbin/newsyslog/newsyslog.8
1.113 +236 -16 src/usr.sbin/newsyslog/newsyslog.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007221123.o6MBNVcX038832>
