Correction d'une erreur de syntaxe
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@943 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2
check
2
check
@@ -184,7 +184,7 @@ function testPort()
|
|||||||
checklog "ERREUR : /etc/init.d/$3 introuvable (testPort)"
|
checklog "ERREUR : /etc/init.d/$3 introuvable (testPort)"
|
||||||
else
|
else
|
||||||
RESULTAT=`echo "QUIT" | nc -w1 $1 $2 2>&1`
|
RESULTAT=`echo "QUIT" | nc -w1 $1 $2 2>&1`
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ] || [ "$RESULTAT" == "" ]; then
|
||||||
checklog "Relance de $3 car injoignable par reseau"
|
checklog "Relance de $3 car injoignable par reseau"
|
||||||
echo "ALERTE : La machine `hostname` ne peut plus se connecter a "
|
echo "ALERTE : La machine `hostname` ne peut plus se connecter a "
|
||||||
echo "$1 port $2 : $RESULTAT"
|
echo "$1 port $2 : $RESULTAT"
|
||||||
|
|||||||
Reference in New Issue
Block a user