aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/newsyslog/newsyslog.conf.5
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2023-12-25 07:47:36 +0000
committerXin LI <delphij@FreeBSD.org>2023-12-29 08:32:26 +0000
commit61174ad88e33b6162fa1c9ee37d7f227e0bbf931 (patch)
tree2a12bb38e2fc7aa96fc7c6f87fdc575159f0b9f5 /usr.sbin/newsyslog/newsyslog.conf.5
parentee5804da116f2107451c8b4376b69b3a64a630e8 (diff)
newsyslog(8): Add support of specifying compression method in configuration file.
Administrators can now specify a global compression method directly at the beginning of the newsyslog.conf file, for example: <compress> none Relnotes: yes Reviewed by: dvl MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43174
Diffstat (limited to 'usr.sbin/newsyslog/newsyslog.conf.5')
-rw-r--r--usr.sbin/newsyslog/newsyslog.conf.523
1 files changed, 18 insertions, 5 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.conf.5 b/usr.sbin/newsyslog/newsyslog.conf.5
index a53af5b38319..120c5a0cb7cc 100644
--- a/usr.sbin/newsyslog/newsyslog.conf.5
+++ b/usr.sbin/newsyslog/newsyslog.conf.5
@@ -18,7 +18,7 @@
.\" the suitability of this software for any purpose. It is
.\" provided "as is" without express or implied warranty.
.\"
-.Dd December 22, 2023
+.Dd December 25, 2023
.Dt NEWSYSLOG.CONF 5
.Os
.Sh NAME
@@ -67,11 +67,24 @@ The fields of the configuration file are as follows:
.Bl -tag -width indent
.It Ar logfile_name
Name of the system log file to be archived,
-or one of the literal strings
-.Dq Aq Li default ,
+or one of the special strings
+.Dq Li <compress> ,
+.Dq Li <default> ,
or
-.Dq Aq Li include .
-The special default entry will only be used if a log file
+.Dq Li <include> .
+The <compress> entry,
+which should be placed at the beginning of the
+.Nm
+configuration file,
+sets the global compress method.
+This method is applied when a log file is flagged as
+compressible,
+which has the same effect of passing a compress method to the
+.Fl c
+option on the
+.Xr newsyslog 8
+command line.
+The special <default> entry will only be used if a log file
name is given as a command line argument to
.Xr newsyslog 8 ,
and if that log file name is not matched by any other