Sync newsyslog(8) with FreeBSD's current code.
commit202d1fa499290493d6871ef55f1e20928b6cd361
authorSascha Wildner <swildner@dragonflybsd.org>
Sat, 12 May 2007 08:52:00 +0000 (12 08:52 +0000)
committerSascha Wildner <swildner@dragonflybsd.org>
Sat, 12 May 2007 08:52:00 +0000 (12 08:52 +0000)
tree7324116aebd5bbb48549cde79a670c68cae5f765
parent7c0698a5cbd27d1e1a5a249305e2a6410d59f906
Sync newsyslog(8) with FreeBSD's current code.

New things:

* Re-ordering of the rotate/signal steps. First, rotate all files which
  need to be rotated and then send a single signal to each daemon that
  needs to be notified. This way, each daemon will only be signaled once
  instead of once per file.

* Allow /var/log to be a symbolic link.

* -d option for specifying an alternate root for log files.

* -D option for debugging purposes.

* -N option to suppress log file rotation (intended to be used in
  conjunction with -C and -CC).

* Bug fixes and minor improvements.

Note: FreeBSD's r1.107 of newsyslog.c was not brought in as it generates
      a warning in DragonFly instead of fixing one.
usr.sbin/newsyslog/Makefile
usr.sbin/newsyslog/extern.h [new file with mode: 0644]
usr.sbin/newsyslog/newsyslog.8
usr.sbin/newsyslog/newsyslog.c
usr.sbin/newsyslog/newsyslog.conf.5 [new file with mode: 0644]
usr.sbin/newsyslog/ptimes.c [new file with mode: 0644]