Projet

Général

Profil

Révision a86de787

IDa86de7871ac2d31ac1f6a917b3149deb92556f51
Parent f9426dac
Enfant 6cc95f20

Ajouté par Bas Couwenberg il y a environ 8 ans

Use exit status 0 for autoconf, provide reason for 'no' answer.

Voir les différences:

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