fix "service sfa status"
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 7 Oct 2010 13:17:58 +0000 (15:17 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 7 Oct 2010 13:17:58 +0000 (15:17 +0200)
sfa/init.d/sfa

index b3b041c..5e579ee 100755 (executable)
@@ -76,7 +76,7 @@ start() {
     fi
 
     RETVAL=$?
-    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sfa
+    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sfa-server.py
 
 }
 
@@ -84,7 +84,7 @@ stop() {
     action $"Shutting down SFA" killproc sfa-server.py
     RETVAL=$?
 
-    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sfa
+    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sfa-server.py
 }
 
 
@@ -94,13 +94,13 @@ case "$1" in
     reload) reload force ;;
     restart) stop; start ;;
     condrestart)
-       if [ -f /var/lock/subsys/sfa ]; then
+       if [ -f /var/lock/subsys/sfa-server.py ]; then
             stop
             start
        fi
        ;;
     status)
-       status sfa
+       status sfa-server.py
        RETVAL=$?
        ;;
     *)