]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
munin plugin: always exit 0 in autoconf 270/head
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 23 Jul 2020 14:04:26 +0000 (16:04 +0200)
committerChristian Göttsche <cgzones@googlemail.com>
Thu, 23 Jul 2020 14:04:26 +0000 (16:04 +0200)
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_

index 2839cd8b53656b3b3a11a62517bcf480d0bb4b21..defca291c6498971c5d87bbf181836e7e2ebbd78 100755 (executable)
@@ -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