aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/syslogd
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2001-05-10 15:48:33 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2001-05-10 15:48:33 +0000
commitf0ee9598413c072b9bb8487479b8e1a514b8d98d (patch)
treeea7ae056dd19a3a84704953fdb340fe7f4c2f460 /usr.sbin/syslogd
parent44ced8b3c5696795c613fa92770d6b9708ec7ed6 (diff)
Notes
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r--usr.sbin/syslogd/syslogd.811
-rw-r--r--usr.sbin/syslogd/syslogd.c9
2 files changed, 14 insertions, 6 deletions
diff --git a/usr.sbin/syslogd/syslogd.8 b/usr.sbin/syslogd/syslogd.8
index 2ba8821ab450..e111e11f9199 100644
--- a/usr.sbin/syslogd/syslogd.8
+++ b/usr.sbin/syslogd/syslogd.8
@@ -45,6 +45,7 @@
.Op Fl f Ar config_file
.Op Fl m Ar mark_interval
.Op Fl p Ar log_socket
+.Op Fl P Ar pid_file
.Op Fl l Ar path
.Sh DESCRIPTION
The
@@ -172,6 +173,10 @@ Disable dns query for every request.
Specify the pathname of an alternate log socket to be used instead;
the default is
.Pa /var/run/log .
+.It Fl P
+Specify an alternative file in which to store the process id.
+The default is
+.Pa /var/run/syslog.pid .
.It Fl l
Specify a location where
.Nm
@@ -220,7 +225,8 @@ and from the special device
.Pp
The
.Nm
-daemon creates the file
+daemon creates its process id file,
+by default
.Pa /var/run/syslog.pid ,
and stores its process
id there.
@@ -241,8 +247,7 @@ include file
.It Pa /etc/syslog.conf
configuration file
.It Pa /var/run/syslog.pid
-process id of current
-.Nm
+default process id file
.It Pa /var/run/log
name of the
.Tn UNIX
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
index ba71c95215d6..a0198a3c4fc9 100644
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -325,7 +325,7 @@ main(argc, argv)
pid_t ppid = 1;
socklen_t len;
- while ((ch = getopt(argc, argv, "46Aa:df:kl:m:np:suv")) != -1)
+ while ((ch = getopt(argc, argv, "46Aa:df:kl:m:np:P:suv")) != -1)
switch (ch) {
case '4':
family = PF_INET;
@@ -367,6 +367,9 @@ main(argc, argv)
case 'p': /* path */
funixn[0] = optarg;
break;
+ case 'P': /* path for alt. PID */
+ PidFile = optarg;
+ break;
case 's': /* no network mode */
SecureMode++;
break;
@@ -596,8 +599,8 @@ usage()
fprintf(stderr, "%s\n%s\n%s\n",
"usage: syslogd [-46Adnsuv] [-a allowed_peer] [-f config_file]",
- " [-m mark_interval] [-p log_socket]",
- " [-l log_socket]");
+ " [-m mark_interval] [-l log_socket]",
+ " [-p log_socket] [-P pid_file]");
exit(1);
}