zap redundant "|| return 1"; OK lucas
authorkn <kn@openbsd.org>
Mon, 23 Sep 2024 20:44:24 +0000 (20:44 +0000)
committerkn <kn@openbsd.org>
Mon, 23 Sep 2024 20:44:24 +0000 (20:44 +0000)
unbound-checkconf(8) itself exits 1 on error already.

etc/rc.d/unbound

index 0f19c90..4429c0b 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/ksh
 #
-# $OpenBSD: unbound,v 1.7 2022/05/21 10:10:45 ajacoutot Exp $
+# $OpenBSD: unbound,v 1.8 2024/09/23 20:44:24 kn Exp $
 
 daemon="/usr/sbin/unbound"
 daemon_flags="-c /var/unbound/etc/unbound.conf"
@@ -12,7 +12,8 @@ rc_pre() {
             /var/unbound/etc/unbound.conf > /dev/null 2>&1; then
                /usr/sbin/unbound-anchor -v
        fi
-       /usr/sbin/unbound-checkconf || return 1
+
+       /usr/sbin/unbound-checkconf
 }
 
 rc_cmd $1