aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-11 23:49:40 +0000
committerRoy Marples <roy@marples.name>2008-01-11 23:49:40 +0000
commitfa363ecaf7fcd6a7ee43fe5ec046dc5ea7e94686 (patch)
tree414c12cff61bc63c00cda02f80899bf1eb64bece
parentd4404ea9c7a5f37e148d22dbe05d804f2df93b11 (diff)
Don't use bins in global if we can help it.
-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()