Révision a86de787
Use exit status 0 for autoconf, provide reason for 'no' answer.
| plugins/pdns/pdns_rel | ||
|---|---|---|
| 9 | 9 |
#%# family=auto |
| 10 | 10 |
#%# capabilities=autoconf |
| 11 | 11 |
|
| 12 |
command="/usr/bin/pdns_control show" |
|
| 12 |
pdns_control="/usr/bin/pdns_control" |
|
| 13 |
command="$pdns_control show" |
|
| 13 | 14 |
state_file=$MUNIN_PLUGSTATE/pdns_rel.state |
| 14 | 15 |
|
| 15 | 16 |
if [ "$1" = "autoconf" ]; then |
| 16 |
if [ -e /usr/bin/pdns_control ]; then
|
|
| 17 |
if [ -e "$pdns_control" ]; then
|
|
| 17 | 18 |
echo yes |
| 18 | 19 |
exit 0 |
| 19 | 20 |
else |
| 20 |
echo no
|
|
| 21 |
exit 1
|
|
| 21 |
echo "no (missing $pdns_control)"
|
|
| 22 |
exit 0
|
|
| 22 | 23 |
fi |
| 23 | 24 |
fi |
| 24 | 25 |
|
Formats disponibles : Unified diff