From cd8d065bddcd1323688daf80abbe75a950d217b9 Mon Sep 17 00:00:00 2001 From: sobomax Date: Thu, 14 Nov 2002 08:43:07 +0000 Subject: 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 --- usr.sbin/newsyslog/newsyslog.8 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'usr.sbin/newsyslog/newsyslog.8') 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 -- cgit v1.1