From 2dcab2a61d4c1ba4c2614f49c361fb01d01fb125 Mon Sep 17 00:00:00 2001 From: kn Date: Mon, 23 Sep 2024 20:44:24 +0000 Subject: [PATCH] zap redundant "|| return 1"; OK lucas unbound-checkconf(8) itself exits 1 on error already. --- etc/rc.d/unbound | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/unbound b/etc/rc.d/unbound index 0f19c90fdf1..4429c0bbe12 100644 --- a/etc/rc.d/unbound +++ b/etc/rc.d/unbound @@ -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 -- 2.20.1