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

exiscan.init

index 37909cccb7edc83fa5794bb7b21a08602f008f94..de30d88a745121860befba89c480d4b0aa9b8ed5 100644 (file)
@@ -26,6 +26,7 @@ else
        exit 0
 fi
 
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -33,7 +34,6 @@ case "$1" in
        if [ ! -f /var/lock/subsys/exiscan ]; then
                msg_starting exiscan
                if ! (/usr/bin/exim -bP | grep -q "^queue_only$"); then
-                       deltext
                        fail
                        nls "exim.conf: queue_only = true is missing"
                        RETVAL=1
@@ -44,7 +44,6 @@ case "$1" in
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/exiscan
        else
                msg_already_running exiscan
-               exit 1
        fi
        ;;
   stop)
@@ -55,22 +54,20 @@ case "$1" in
                rm -f /var/lock/subsys/exiscan > /dev/null 2>&1
        else
                msg_not_running exiscan
-               exit 1
        fi
        ;;
   status)
        status exiscan
-       RETVAL=$?
-       exit $RETVAL
+       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.053741 seconds and 4 git commands to generate.