From 6a34ae85e96f461802aa265b42a3a69877f86a2e Mon Sep 17 00:00:00 2001 From: gad Date: Sun, 27 Apr 2003 23:37:31 +0000 Subject: 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 --- usr.sbin/newsyslog/newsyslog.8 | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'usr.sbin/newsyslog/newsyslog.8') 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 -- cgit v1.1