]> git.pld-linux.org Git - packages/crossfire.git/blobdiff - crossfire.init
- LSB conformance changes
[packages/crossfire.git] / crossfire.init
index 6dddfec7e3cfe2b737fb96673d93ccf6b8d18da4..450b020f158ada02ee8503b892620af93198e9ff 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.030868 seconds and 4 git commands to generate.