- LSB compliance
authorankry <ankry@pld-linux.org>
Sat, 17 May 2003 21:03:35 +0000 (21:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    atsar.init -> 1.5

atsar.init

index efef18f..c7d0b27 100755 (executable)
@@ -19,7 +19,6 @@ fi
 [ -f /usr/bin/atsadc ] || exit 0
 
 RETVAL=0
-
 # See how we were called.
 case "$1" in
   start)
@@ -40,32 +39,32 @@ case "$1" in
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/atsar
        else
                msg_already_running atsar
-               exit 1
        fi
        ;;
   stop)
        if [ -f /var/lock/subsys/atsar ]; then
                msg_stopping atsar
-               daemon  rm -f /var/lock/subsys/atsar
-               RETVAL=$?
+               daemon rm -f /var/lock/subsys/atsar
        else
                msg_not_running atsar
-               exit 1
        fi
        ;;
   status)
        ;;
   reload)
+       # to be fixed
        $0 stop
        $0 start
+       exit $?
        ;;
-  restart)
+  restart|force-reload)
        $0 stop
        $0 start
+       exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|status}"
-       exit 1
+       msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+       exit 3
 esac
 
 exit $RETVAL
This page took 0.139811 seconds and 4 git commands to generate.