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
Christian Göttsche
3 years ago
173 | 173 | if test "$1" = "autoconf" ; then |
174 | 174 | if test ! -f $conf; then |
175 | 175 | echo no "($conf does not exist)" |
176 | exit 1 | |
176 | exit 0 | |
177 | 177 | fi |
178 | 178 | if test ! -d `dirname $state`; then |
179 | 179 | echo no "(`dirname $state` directory does not exist)" |
180 | exit 1 | |
180 | exit 0 | |
181 | 181 | fi |
182 | 182 | echo yes |
183 | 183 | exit 0 |