From c6ff5558dec2d73e1cdd2fae3e05946a99a97dc4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 23 Jul 2020 16:04:26 +0200 Subject: [PATCH] munin plugin: always exit 0 in autoconf The autoconf operation should always exit 0, also in case the answer in "no", see https://guide.munin-monitoring.org/en/latest/develop/plugins/plugin-concise.html#autoconf --- contrib/unbound_munin_ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/unbound_munin_ b/contrib/unbound_munin_ index 2839cd8b5..defca291c 100755 --- a/contrib/unbound_munin_ +++ b/contrib/unbound_munin_ @@ -174,11 +174,11 @@ get_state ( ) { if test "$1" = "autoconf" ; then if test ! -f $conf; then echo no "($conf does not exist)" - exit 1 + exit 0 fi if test ! -d `dirname $state`; then echo no "(`dirname $state` directory does not exist)" - exit 1 + exit 0 fi echo yes exit 0 -- 2.47.2