diff options
author | ache <ache@FreeBSD.org> | 1997-05-04 01:53:53 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-05-04 01:53:53 +0000 |
commit | 28bcd2026c62c8edda454b1c0e276f1720f7937e (patch) | |
tree | f0ae833f93046c012f5239c0e1fe3a82bf05c2c0 /usr.sbin/newsyslog/newsyslog.8 | |
parent | 99940927b5f55121d81e173d7193670b3cdae6bd (diff) | |
download | FreeBSD-src-28bcd2026c62c8edda454b1c0e276f1720f7937e.zip FreeBSD-src-28bcd2026c62c8edda454b1c0e276f1720f7937e.tar.gz |
1) Add yet one optional field: pid file to send SIGHUP to if log rotated
(good thing for apache f.e.) This change is backward compatible with old
newsyslog.conf files.
2) Do not compress log if SIGHUP sending failed for some reason
(f.e. pid file deleted). Newcoming messages will be lost
otherwise.
3) Misc cleanup while I am here.
Diffstat (limited to 'usr.sbin/newsyslog/newsyslog.8')
-rw-r--r-- | usr.sbin/newsyslog/newsyslog.8 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.8 b/usr.sbin/newsyslog/newsyslog.8 index e83afcc..c9e4550 100644 --- a/usr.sbin/newsyslog/newsyslog.8 +++ b/usr.sbin/newsyslog/newsyslog.8 @@ -1,7 +1,7 @@ .\" This file contains changes from the Open Software Foundation. .\" .\" from: @(#)newsyslog.8 -.\" $Id: newsyslog.8,v 1.4 1997/02/22 16:08:25 peter Exp $ +.\" $Id: newsyslog.8,v 1.5 1997/02/28 07:33:37 mpp Exp $ .\" .\" Copyright 1988, 1989 by the Massachusetts Institute of Technology .\" @@ -57,7 +57,7 @@ at. By default, this configuration file is Each line of the file contains information about a particular log file that should be handled by .Nm newsyslog . -Each line has five mandatory fields and two optional fields, with a +Each line has five mandatory fields and three optional fields, with a whitespace separating each field. Blank lines or lines beginning with ``#'' are ignored. The fields of the configuration file are as follows: @@ -113,6 +113,12 @@ message which .Nm inserts to indicate the fact that the logs have been turned over should not be included. +.It Ar path_to_pid_file +This optional field specifies +the file name to read to find the daemon process id. If this +field is present, a SIGHUP is sent the process id contained in this +file. This field must start with "/" in order to be recognized +properly. .El .Sh OPTIONS The following options can be used with newsyslog: |