From 8e1bed947f05a4707b365497238085837f88e583 Mon Sep 17 00:00:00 2001 From: camield <> Date: Mon, 16 Jan 2012 17:51:42 +0000 Subject: [PATCH] Use nsdc to reliably stop nsd. ok ajacoutot sthen --- src/etc/rc.d/nsd | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/etc/rc.d/nsd b/src/etc/rc.d/nsd index b956b967..ac69bba0 100644 --- a/src/etc/rc.d/nsd +++ b/src/etc/rc.d/nsd @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: nsd,v 1.2 2011/12/13 13:45:38 ajacoutot Exp $ +# $OpenBSD: nsd,v 1.3 2012/01/16 17:51:42 camield Exp $ daemon="/usr/sbin/nsd" @@ -8,4 +8,14 @@ daemon="/usr/sbin/nsd" rc_reload=NO +daemon_ctl="/usr/sbin/nsdc" + +rc_stop() { + ${daemon_ctl} stop +} + +rc_check() { + ${daemon_ctl} running +} + rc_cmd $1