summaryrefslogtreecommitdiff
path: root/net/openntpd/files/openntpd.in
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2014-06-02 15:03:34 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2014-06-02 15:03:34 +0000
commit6c86c5b1750a8ca8ecaef26b119149bc1078a6ea (patch)
treee89e2a3183ce378fc6e761d6f84d495220027bb0 /net/openntpd/files/openntpd.in
parent- bring in dependency of devel/py-libvirt (diff)
The sample configurarion file moves to etc/ntpd.conf.sample.
Fix a race and make sure the rc.d script only matches the master process.
Diffstat (limited to 'net/openntpd/files/openntpd.in')
-rw-r--r--net/openntpd/files/openntpd.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/openntpd/files/openntpd.in b/net/openntpd/files/openntpd.in
index 51092c0dbca3..c6dfb9074c0e 100644
--- a/net/openntpd/files/openntpd.in
+++ b/net/openntpd/files/openntpd.in
@@ -15,6 +15,11 @@
. /etc/rc.subr
+check_process()
+{
+ /bin/pgrep -f 'ntpd: \[priv\]'
+}
+
name=openntpd
rcvar=openntpd_enable