]> git.pld-linux.org Git - packages/stunnel.git/commitdiff
- LSB conformance
authorankry <ankry@pld-linux.org>
Tue, 27 May 2003 21:54:12 +0000 (21:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    stunnel.init -> 1.3

stunnel.init

index 0bab2f006833dbd7c79fc5db8d1c55463cad7cba..54a84bf5f2913cfcbe6d440f21487dd5d7c62841 100644 (file)
@@ -34,7 +34,7 @@ if [ ! -f "$STUNNEL_CONFIG" ]; then
        exit 1
 fi
 
-
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -46,36 +46,29 @@ case "$1" in
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/stunnel
        else
                msg_already_running stunnel
-               exit 1
        fi
        ;;
   stop)
        if [ -f /var/lock/subsys/stunnel ]; then
                msg_stopping stunnel
                killproc stunnel
-               RETVAL=$?
                rm -f /var/run/stunnel/stunnel.pid /var/lock/subsys/stunnel >/dev/null 2>&1
        else
                msg_not_running stunnel
-               exit 1
        fi      
        ;;
-  restart|reload)
+  restart|force-reload)
        $0 stop
        $0 start
        exit $?
        ;;
-  force-reload)
-       $0 stop && $0 start
-       exit $?
-       ;;
   status)
        status stunnel
        exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
-       exit 1
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
 esac
 
 exit $RETVAL
This page took 0.025839 seconds and 4 git commands to generate.