summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd/syslogd.8
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-03-06 10:36:33 +0000
committerpjd <pjd@FreeBSD.org>2006-03-06 10:36:33 +0000
commit96923c291c08e18b976f0a170240c3883133501d (patch)
tree485d4836cd2004fa2b2689fb876d66dfcef6f5dc /usr.sbin/syslogd/syslogd.8
parente26ef35902bca6a5b8f5bac7fec6eb538707969b (diff)
downloadFreeBSD-src-96923c291c08e18b976f0a170240c3883133501d.zip
FreeBSD-src-96923c291c08e18b976f0a170240c3883133501d.tar.gz
By default (for security reasons) syslogd(8) doesn't create log files
when they don't exist, but sometimes its quite useful (eg. we use non-standard log files and memory backed /var/, which is populated on boot). Add -C option which tells syslogd(8) to create log files if they don't exist. Glanced at by: phk MFC after: 3 days
Diffstat (limited to 'usr.sbin/syslogd/syslogd.8')
-rw-r--r--usr.sbin/syslogd/syslogd.89
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/syslogd.8 b/usr.sbin/syslogd/syslogd.8
index afb9f8a..c9faa01 100644
--- a/usr.sbin/syslogd/syslogd.8
+++ b/usr.sbin/syslogd/syslogd.8
@@ -36,7 +36,7 @@
.Nd log systems messages
.Sh SYNOPSIS
.Nm
-.Op Fl 46Acdknosuv
+.Op Fl 46ACcdknosuv
.Op Fl a Ar allowed_peer
.Op Fl b Ar bind_address
.Op Fl f Ar config_file
@@ -157,6 +157,9 @@ option is also specified.
Specify one specific IP address or hostname to bind to.
If a hostname is specified,
the IPv4 or IPv6 address which corresponds to it is used.
+.It Fl C
+Create log files that do not exist (permission is set to
+.Li 0600 ) .
.It Fl c
Disable the compression of repeated instances of the same line
into a single line of the form
@@ -283,7 +286,9 @@ include file
.Pp
For security reasons,
.Nm
-will not append to log files that do not exist;
+will not append to log files that do not exist (unless
+.Fl C
+option is specified);
therefore, they must be created manually before running
.Nm .
.Sh FILES
OpenPOWER on IntegriCloud