From: Thierry Parmentelat Date: Thu, 7 Oct 2010 13:17:58 +0000 (+0200) Subject: fix "service sfa status" X-Git-Tag: sfa-1.0-2~5 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=486075bb8f430ef053c3dc73c2f3ebc6b066c133;p=sfa.git fix "service sfa status" --- diff --git a/sfa/init.d/sfa b/sfa/init.d/sfa index b3b041ca..5e579ee5 100755 --- a/sfa/init.d/sfa +++ b/sfa/init.d/sfa @@ -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=$? ;; *)