Date: Sun, 21 Nov 2010 11:10:09 +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: <201011211110.oALBAK41012459@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
simon 2010-11-21 11:10:09 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
usr.sbin/newsyslog newsyslog.8 newsyslog.c
Log:
SVN rev 215624 on 2010-11-21 11:10:09Z by simon
MFC r210372:
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.
Revision Changes Path
1.51.22.5 +31 -0 src/usr.sbin/newsyslog/newsyslog.8
1.108.2.6 +236 -16 src/usr.sbin/newsyslog/newsyslog.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011211110.oALBAK41012459>
