- LSB conformance changes
authorankry <ankry@pld-linux.org>
Tue, 20 May 2003 21:29:13 +0000 (21:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    crossfire.init -> 1.7

crossfire.init

index 6dddfec..450b020 100644 (file)
@@ -27,6 +27,7 @@ fi
 
 TMPDIR="/tmp"; export TMPDIR
 
+RETVAL=0
 case "$1" in
   start)
        if [ ! -f /var/lock/subsys/crossfire ]; then
@@ -46,7 +47,6 @@ case "$1" in
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/crossfire
        else
                msg_already_running crossfire
-               exit 1
        fi
        ;;
   stop)
@@ -56,31 +56,31 @@ case "$1" in
                rm -f /var/lock/subsys/crossfire >/dev/null 2>&1
        else
                msg_not_running crossfire
-               exit 1
        fi
        ;;
   status)
        status crossfire
+       RETVAL=$?
        su games -c "crossfire +d -s"
-       exit $?
        ;;
   restart)
        $0 stop
        $0 start
+       RETVAL=$?
        ;;
-  reload)
+  reload|force-reload)
        if [ -f /var/lock/subsys/crossfire ]; then
                msg_reloading crossfire
                killproc crossfire
                RETVAL=$?
        else
-               msg_not_running crossfire
-               exit 1
+               msg_not_running crossfire >&2
+               exit 7
        fi
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|status}"
-       exit 1
+       msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+       exit 7
 esac
 
 exit $RETVAL
This page took 0.174025 seconds and 4 git commands to generate.