mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
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
This commit is contained in:
parent
753487ff7f
commit
c6ff5558de
1 changed files with 2 additions and 2 deletions
|
|
@ -174,11 +174,11 @@ get_state ( ) {
|
||||||
if test "$1" = "autoconf" ; then
|
if test "$1" = "autoconf" ; then
|
||||||
if test ! -f $conf; then
|
if test ! -f $conf; then
|
||||||
echo no "($conf does not exist)"
|
echo no "($conf does not exist)"
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
fi
|
||||||
if test ! -d `dirname $state`; then
|
if test ! -d `dirname $state`; then
|
||||||
echo no "(`dirname $state` directory does not exist)"
|
echo no "(`dirname $state` directory does not exist)"
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo yes
|
echo yes
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue