-e à la place de -f : capture les unix socket

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1778 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-09-01 07:07:56 +00:00
parent 878adde5e9
commit 30d787b148

2
check
View File

@@ -311,7 +311,7 @@ function testFichierPresent
# Si ce n'est pas le cas, relance le programme passé en deuxième paramètre
if [ ! -e "/etc/init.d/$2" ]; then
checklog "ERREUR : /etc/init.d/$2 introuvable (testFichierPresent)"
elif [ ! -f "$1" ]; then
elif [ ! -e "$1" ]; then
checklog "ERREUR : Fichier $1 absent : relance $2"
/etc/init.d/$2 stop
/etc/init.d/$2 start