summaryrefslogtreecommitdiffstats
path: root/usr.sbin/newsyslog/newsyslog.8
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-11-14 08:43:07 +0000
committersobomax <sobomax@FreeBSD.org>2002-11-14 08:43:07 +0000
commitcd8d065bddcd1323688daf80abbe75a950d217b9 (patch)
tree6bde64da27f0b5b79514f9502bc6c98fbb289124 /usr.sbin/newsyslog/newsyslog.8
parent52879ad635271f7e0691556937b3d38503566f44 (diff)
downloadFreeBSD-src-cd8d065bddcd1323688daf80abbe75a950d217b9.zip
FreeBSD-src-cd8d065bddcd1323688daf80abbe75a950d217b9.tar.gz
Add a new newsyslog.conf flag - 'G', which if set tells newsyslog(8) that
the specified filename of the log to be rotated is in fact shell glob pattern. In this case, all files matching this pattern will be rotated using the same options. Useful in the case when there is no pre-defined name for the logfiles (e.g. xtradius, samba etc). Sponsored by: PortaOne Software Ltd MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/newsyslog/newsyslog.8')
-rw-r--r--usr.sbin/newsyslog/newsyslog.810
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.8 b/usr.sbin/newsyslog/newsyslog.8
index 4d282e1..1671a23 100644
--- a/usr.sbin/newsyslog/newsyslog.8
+++ b/usr.sbin/newsyslog/newsyslog.8
@@ -288,6 +288,16 @@ turned over should not be included. The
flag means nothing, but can be used as a placeholder when the
.Ar path_to_pid_file
field is specified.
+.Ar G
+flag means that the specified
+.Ar logfile_name
+is a shell pattern, which instructs the
+.Nm
+to archive all filenames matchins this pattern using the same
+options.
+See
+.Xr glob 3
+for details on matching rules.
.It Ar path_to_pid_file
This optional field specifies
the file name to read to find the daemon process id. If this
OpenPOWER on IntegriCloud