Correction du script de diagnose.

Il faut utiliser service et pas /etc/init.d
This commit is contained in:
Philippe Caseiro 2016-07-22 10:27:36 +02:00
parent 1a911bd9fc
commit 75faa9e9d7
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ one()
TestServiceStatus() { TestServiceStatus() {
printf ". %${len_pf}s => " "$1" printf ". %${len_pf}s => " "$1"
/etc/init.d/$2 status >/dev/null 2>&1 service $2 status >/dev/null 2>&1
if [ $? -eq 0 ] ; then if [ $? -eq 0 ] ; then
eOK eOK
else else