mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 10:28:36 +00:00
Use exit status 0 for autoconf, provide reason for 'no' answer.
This commit is contained in:
parent
f9426daca5
commit
a86de7871a
16 changed files with 107 additions and 80 deletions
|
@ -9,15 +9,16 @@
|
|||
#%# family=auto
|
||||
#%# capabilities=autoconf
|
||||
|
||||
command="/usr/bin/pdns_control show"
|
||||
pdns_control="/usr/bin/pdns_control"
|
||||
command="$pdns_control show"
|
||||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
if [ -e /usr/bin/pdns_control ]; then
|
||||
if [ -e "$pdns_control" ]; then
|
||||
echo yes
|
||||
exit 0
|
||||
else
|
||||
echo no
|
||||
exit 1
|
||||
echo "no (missing $pdns_control)"
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue