summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2014-01-10 17:41:39 +0000
committersthen <sthen@openbsd.org>2014-01-10 17:41:39 +0000
commit9ac185455706304df3488fe233a6a0506b47dd83 (patch)
treee6d41cecbe28f7727886ad2d74cbf87a5d64e05d
parent-c comment, for people who don't like the default. ok deraadt (diff)
downloadwireguard-openbsd-9ac185455706304df3488fe233a6a0506b47dd83.tar.xz
wireguard-openbsd-9ac185455706304df3488fe233a6a0506b47dd83.zip
Remove unnecessary rc_post from rc.d/nsd.
It was there to try and ensure that failure was reported if nsd stopped shortly after startup (as it used to do if the address was in use, etc), but this is no longer the case with nsd 4 which returns a failure at startup in these cases, and having it there breaks properly printing "(ok)" when stopping.
-rw-r--r--etc/rc.d/nsd7
1 files changed, 1 insertions, 6 deletions
diff --git a/etc/rc.d/nsd b/etc/rc.d/nsd
index c426ad0d100..861a4ed8bc2 100644
--- a/etc/rc.d/nsd
+++ b/etc/rc.d/nsd
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: nsd,v 1.5 2013/11/26 13:01:30 sthen Exp $
+# $OpenBSD: nsd,v 1.6 2014/01/10 17:41:39 sthen Exp $
daemon="/usr/sbin/nsd-control"
daemon_flags="-c /var/nsd/etc/nsd.conf"
@@ -35,9 +35,4 @@ rc_stop() {
${daemon} stop
}
-rc_post() {
- sleep 1
- rc_do rc_check || exit 0
-}
-
rc_cmd $1