aboutsummaryrefslogtreecommitdiff
path: root/init.d.BSD/syslogd
diff options
context:
space:
mode:
Diffstat (limited to 'init.d.BSD/syslogd')
-rw-r--r--init.d.BSD/syslogd5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.d.BSD/syslogd b/init.d.BSD/syslogd
index 5f362fee..c583d248 100644
--- a/init.d.BSD/syslogd
+++ b/init.d.BSD/syslogd
@@ -4,7 +4,10 @@
command=/usr/sbin/syslogd
command_args=${syslogd_args}
-pidfile=$(strings ${command} | grep /var/run/syslog)
+case "${RC_UNAME}" in
+ FreeBSD|DragonFly) pidfile=/var/run/syslog.pid;;
+ *) pidfile=/var/run/syslogd.pid;;
+esac
name="System Logger Daemon"
depend()