freebsd-dev/usr.sbin/newsyslog
Garance A Drosehn 7f5b34d7c0 Major re-ordering of the steps that newsyslog will use when processing
files to rotate.  The new order will first rotate all files that need
to be rotated, and then send a single signal to each process which
needs to be signaled, and finally it will compress all the files which
were rotated.

This means daemons will be signaled once per run of newsyslog, instead
of once per file rotated.  Also, files will be compressed in order of
file-size (smallest to largest).  Also, it waits for each file to be
completely compressed before starting the next one (effectively as if
the 'w' flag is specified for all entries in newsyslog.conf).  This
avoids the situation of having 10 gzip's going at the same time (each
with a log.0 and a log.0.gz file active), and it also means that file
attributes can be reliably set on files after they are compressed.

NOTE: This commit does define NEWORDER (which you could get rid of if
you really don't trust this), but it does not flip the "-D neworder"
switch.  So, at the moment none of these changes happen unless you
request them (perhaps by adding '<debug> neworder' in newsyslog.conf).

PR:		bin/25070 inspired some parts of this
Submitted by:	parts from bin/25070 done by Helge Oldach
MFC after:	14 days
2004-06-07 02:10:10 +00:00
..
extern.h Restructure the time processing routines, mainly to fix up the 2003-09-23 00:00:26 +00:00
Makefile Move newsyslog.conf.5 to usr.sbin/newsyslog. There is no real history 2004-03-12 16:03:26 +00:00
newsyslog.8 Remove information about the configuration file. 2004-03-11 04:32:16 +00:00
newsyslog.c Major re-ordering of the steps that newsyslog will use when processing 2004-06-07 02:10:10 +00:00
newsyslog.conf.5 Add a 'D' flag that can be specified on entries in newsyslog.conf. 2004-06-03 23:41:49 +00:00
pathnames.h Add the ability to Bzip2 your logs. 2001-07-30 15:17:17 +00:00
ptimes.c Handle a 'const' parameter without using __DECONST(). 2003-10-04 02:24:47 +00:00