diff options
author | gad <gad@FreeBSD.org> | 2003-04-27 23:37:31 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2003-04-27 23:37:31 +0000 |
commit | 6a34ae85e96f461802aa265b42a3a69877f86a2e (patch) | |
tree | c16919ad577092748e7e0c535db1b69bb8d61267 /usr.sbin/newsyslog/newsyslog.8 | |
parent | 61ca7f9bcb8eb5953a6e4d254077f6a8f7e8551c (diff) | |
download | FreeBSD-src-6a34ae85e96f461802aa265b42a3a69877f86a2e.zip FreeBSD-src-6a34ae85e96f461802aa265b42a3a69877f86a2e.tar.gz |
Add a -C (create) option for newsyslog, and a 'C' flag for entries in the
config file. If the -C option is specified once, then newsyslog will create
any entries which specify the 'C' option. If -C is given twice, then
newsyslog will create all missing log files. Some of this code comes
from NetBSD, although this implementation does not exactly match theirs.
Reviewed by: freebsd-arch
MFC after: 10 days
Diffstat (limited to 'usr.sbin/newsyslog/newsyslog.8')
-rw-r--r-- | usr.sbin/newsyslog/newsyslog.8 | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.8 b/usr.sbin/newsyslog/newsyslog.8 index 288e9e1..dfd04ed 100644 --- a/usr.sbin/newsyslog/newsyslog.8 +++ b/usr.sbin/newsyslog/newsyslog.8 @@ -17,7 +17,7 @@ .\" the suitability of this software for any purpose. It is .\" provided "as is" without express or implied warranty. .\" -.Dd March 08, 2003 +.Dd April 27, 2003 .Dt NEWSYSLOG 8 .Os .Sh NAME @@ -25,7 +25,7 @@ .Nd maintain system log files to manageable sizes .Sh SYNOPSIS .Nm -.Op Fl Fnrsv +.Op Fl CFnrsv .Op Fl R Ar tagname .Op Fl a Ar directory .Op Fl f Ar config_file @@ -293,6 +293,11 @@ If .Sy B is specified, then that informational message will not be inserted into the log file. +.It Sy C +indicates that the log file should be created if it does not +already exist, and if the +.Fl C +option was also specified on the command line. .It Sy G indicates that the specified .Ar logfile_name @@ -429,6 +434,20 @@ However, this option is most likely to be useful when specified with the .Fl R option, and in that case the compression will be done. +.It Fl C +If specified once, then +.Nm +will create any log files which do not exist, and which have the +.Sy C +flag specified in their config file entry. +If specified multiple times, then +.Nm +will create all log files which do not already exist. +If log files are given on the command-line, then the +.Fl C +or +.Fl CC +will only apply to those specific log files. .It Fl F Force .Nm |