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.
#!/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"
${daemon} stop
}
-rc_post() {
- sleep 1
- rc_do rc_check || exit 0
-}
-
rc_cmd $1