freebsd-dev/usr.sbin/newsyslog
Simon L. B. Nielsen 872e964d07 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
2010-07-22 11:23:18 +00:00
..
extern.h
Makefile The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
newsyslog.8 Add support for creating the archived log filenames using a time-stamp 2010-07-22 11:23:18 +00:00
newsyslog.c Add support for creating the archived log filenames using a time-stamp 2010-07-22 11:23:18 +00:00
newsyslog.conf.5 Add file include processing for newsyslog. 2010-05-29 22:55:59 +00:00
pathnames.h
ptimes.c Drop the include for <stdint.h>, it was only needed when this was 2004-06-07 21:53:27 +00:00