From 3904e67e5084fe1e296e444c4d22c831d70554f8 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 2 Jul 2013 08:57:52 +0000 Subject: [PATCH] Correction d'une erreur de syntaxe git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@943 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check b/check index c0f9618..c49e72b 100755 --- a/check +++ b/check @@ -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"