From e8bff2c2ccce2dc695098b17cf6299f43e0720ce Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Wed, 25 Jun 2014 12:33:34 +0000 Subject: ensure rc.d/nsd uses a correct exit code as per rc.subr(8); reported by Ben Lovett, simpler diff from aja@ --- etc/rc.d/nsd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/rc.d/nsd b/etc/rc.d/nsd index a56fa89065f..b1971f429a5 100644 --- a/etc/rc.d/nsd +++ b/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() { -- cgit v1.2.3