]> git.pld-linux.org Git - packages/fakebo.git/blobdiff - fakebo.init
- LSB conformance
[packages/fakebo.git] / fakebo.init
index 0a28b51f0369e25f6c9686e5c7dd74e8dc0cedb7..3d56c1c6e30899d886fbe9220d2a92131d59c6d3 100644 (file)
@@ -29,7 +29,7 @@ else
        exit 0
 fi
 
-
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -43,7 +43,6 @@ case "$1" in
        else
                # show "%s service is already running." fakebo
                msg_already_running fakebo
-               exit 1
        fi
        ;;
   stop)
@@ -56,21 +55,21 @@ case "$1" in
        else
                # show "%s service is not running." fakebo
                msg_not_running fakebo
-               exit 1
        fi      
        ;;
-  restart|reload)
+  restart|force-reload)
        $0 stop
        $0 start
+       exit $?
        ;;
   status)
        status fakebo 
        exit $?
        ;;
   *)
-       # show "Usage: %s {start|stop|restart|reload|status}"
-       msg_usage "$0 {start|stop|restart|reload|status}"
-       exit 1
+       # show "Usage: %s {start|stop|restart|force-reload|status}"
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
 esac
 
 exit $RETVAL
This page took 0.125243 seconds and 4 git commands to generate.