Document log rotation command line options

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2018-08-02 23:47:21 +02:00
parent 614cb78aef
commit 1a42935c2f

View File

@ -2,7 +2,7 @@
.\" Copyright 2004,6-8 Martin Schulze <joey@infodrom.org> .\" Copyright 2004,6-8 Martin Schulze <joey@infodrom.org>
.\" May be distributed under the GNU General Public License .\" May be distributed under the GNU General Public License
.\" .\"
.TH SYSKLOGD 8 "11 May 2008" "Version 1.5" "Linux System Administration" .TH SYSKLOGD 8 "02 Aug 2018" "Version 1.5" "Linux System Administration"
.SH NAME .SH NAME
sysklogd \- Linux system logging utilities. sysklogd \- Linux system logging utilities.
.SH SYNOPSIS .SH SYNOPSIS
@ -11,6 +11,12 @@ sysklogd \- Linux system logging utilities.
.RB [ " \-a " .RB [ " \-a "
.I socket .I socket
] ]
.RB [ " \-b "
.I size
]
.RB [ " \-c "
.I count
]
.RB [ " \-d " ] .RB [ " \-d " ]
.RB [ " \-f " .RB [ " \-f "
.I config file .I config file
@ -102,6 +108,19 @@ within the syslogd.c source file. An example for a chroot() daemon is
described by the people from OpenBSD at described by the people from OpenBSD at
<http://www.guides.sk/psionic/dns/>. <http://www.guides.sk/psionic/dns/>.
.TP .TP
.BI "\-b " "size"
This option controls the max size of files in the built-in log-rotation.
When present on the command line it activates log rotation of all files
with the given maximum size.
.TP
.BI "\-c " "count"
This option controls the max number of files kept by the built-in
log-rotation. To activate the built-in log rotation this option must be
combined with the
.BI "\-b"
option. The number of files kept include both gzipped files and the
first rotated (not zipped) file.
.TP
.B "\-d" .B "\-d"
Turns on debug mode. Using this the daemon will not proceed a Turns on debug mode. Using this the daemon will not proceed a
.BR fork (2) .BR fork (2)