From 20511ac3a4182f9f641def4a9d729553339995c4 Mon Sep 17 00:00:00 2001 From: sthen <> Date: Wed, 25 Jun 2014 12:33:33 +0000 Subject: [PATCH] ensure rc.d/nsd uses a correct exit code as per rc.subr(8); reported by Ben Lovett, simpler diff from aja@ --- src/etc/rc.d/nsd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/rc.d/nsd b/src/etc/rc.d/nsd index a56fa890..b1971f42 100644 --- a/src/etc/rc.d/nsd +++ b/src/etc/rc.d/nsd @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: nsd,v 1.7 2014/05/07 02:46:05 sthen Exp $ +# $OpenBSD: nsd,v 1.8 2014/06/25 12:33:33 sthen Exp $ daemon="/usr/sbin/nsd-control" daemon_flags="-c /var/nsd/etc/nsd.conf" @@ -24,7 +24,7 @@ rc_start() { } rc_check() { - ${daemon} ${daemon_flags} status + ${daemon} ${daemon_flags} status || return 1 } rc_reload() {