- 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:
    anacron.init -> 1.7

anacron.init

index 9ac4206..e21ba18 100644 (file)
@@ -17,7 +17,7 @@
 # Get service config
 [ -f /etc/sysconfig/anacron ] && . /etc/sysconfig/anacron
 
-
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -29,35 +29,30 @@ case "$1" in
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/anacron
        else
                msg_already_running Anacron
-               exit 1
        fi
        ;;
   stop)
        # Stop daemons.
        if [ -f /var/lock/subsys/anacron ]; then
                msg_stopping Anacron
-               if [ `pidofproc anacron` ]; then
-                       # if anacron is yet running
-                       killproc anacron;
-               else
-                       ok;
-               fi
+               killproc anacron;
                rm -f /var/lock/subsys/anacron >/dev/null 2>&1
        else
                msg_not_running Anacron
-               exit 1
        fi
        ;;
   status)
        status anacron
+       exit $?
        ;;
-  restart|reload)
+  restart|force-reload)
        $0 stop
        $0 start
+       exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|status}"
-       exit 1
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
 esac
 
 exit $RETVAL
This page took 0.03718 seconds and 4 git commands to generate.