From 75a71ee2cdc1f9df92654db3c2ccf62490473a14 Mon Sep 17 00:00:00 2001 From: sthen <> Date: Wed, 7 May 2014 02:46:05 +0000 Subject: [PATCH] pass daemon_flags to nsd-control when used to check/reload/stop nsd, the only useful option here is to specify an alternative config path, which must be used for these operations as well as for startup. --- src/etc/rc.d/nsd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/etc/rc.d/nsd b/src/etc/rc.d/nsd index 861a4ed8..a56fa890 100644 --- a/src/etc/rc.d/nsd +++ b/src/etc/rc.d/nsd @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: nsd,v 1.6 2014/01/10 17:41:39 sthen Exp $ +# $OpenBSD: nsd,v 1.7 2014/05/07 02:46:05 sthen Exp $ daemon="/usr/sbin/nsd-control" daemon_flags="-c /var/nsd/etc/nsd.conf" @@ -24,15 +24,15 @@ rc_start() { } rc_check() { - ${daemon} status + ${daemon} ${daemon_flags} status } rc_reload() { - ${daemon} reconfig && ${daemon} reload + ${daemon} ${daemon_flags} reconfig && ${daemon} ${daemon_flags} reload } rc_stop() { - ${daemon} stop + ${daemon} ${daemon_flags} stop } rc_cmd $1