]> git.pld-linux.org Git - packages/anubis.git/commitdiff
- 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:
    anubis.init -> 1.5

anubis.init

index 0f2156f9f63314f6a5fb835c3cbb1b9804feb575..1793af22ecf0c0877aba9c5d466507b0431ff0ac 100644 (file)
@@ -32,6 +32,7 @@ fi
 # Get service config
 [ -f "/etc/sysconfig/$SERVICE" ] && . "/etc/sysconfig/$SERVICE"
 
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -42,7 +43,6 @@ case "$1" in
                [ $RETVAL -eq 0 ] && touch $LOCKFILE
        else
                msg_already_running $MSG
-               exit 1
        fi
        ;;
   stop)
@@ -52,20 +52,20 @@ case "$1" in
                rm -f $LOCKFILE  >/dev/null 2>&1
        else
                msg_not_running "$MSG"
-               exit 1
        fi
        ;;
   status)
        status $PROG
        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.1001 seconds and 4 git commands to generate.