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:
2013-07-02 08:57:52 +00:00
parent 072f099d55
commit 3904e67e50

2
check
View File

@@ -184,7 +184,7 @@ function testPort()
checklog "ERREUR : /etc/init.d/$3 introuvable (testPort)"
else
RESULTAT=`echo "QUIT" | nc -w1 $1 $2 2>&1`
if [ "$?" != "0" ]; then
if [ "$?" != "0" ] || [ "$RESULTAT" == "" ]; then
checklog "Relance de $3 car injoignable par reseau"
echo "ALERTE : La machine `hostname` ne peut plus se connecter a "
echo "$1 port $2 : $RESULTAT"