diff options
author | Garance A Drosehn <gad@FreeBSD.org> | 2003-04-27 23:37:31 +0000 |
---|---|---|
committer | Garance A Drosehn <gad@FreeBSD.org> | 2003-04-27 23:37:31 +0000 |
commit | 28045703ccd562175b6af3105c51afdfb6071fc4 (patch) | |
tree | c16919ad577092748e7e0c535db1b69bb8d61267 /usr.sbin/newsyslog/newsyslog.8 | |
parent | 74a0458023619de2a07780de9a74b5376d27b7a4 (diff) | |
download | src-28045703ccd562175b6af3105c51afdfb6071fc4.tar.gz src-28045703ccd562175b6af3105c51afdfb6071fc4.zip |
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
Notes
Notes:
svn path=/head/; revision=114137
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 288e9e1fd887..dfd04ed337b1 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 |