]> git.pld-linux.org Git - packages/fakebo.git/commitdiff
- LSB conformance
authorankry <ankry@pld-linux.org>
Wed, 21 May 2003 21:45:52 +0000 (21:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fakebo.init -> 1.4

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.090968 seconds and 4 git commands to generate.