]> git.pld-linux.org Git - packages/openssh.git/commitdiff
- LSB conformance
authorankry <ankry@pld-linux.org>
Sun, 25 May 2003 11:39:18 +0000 (11:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    opensshd.init -> 1.16

opensshd.init

index d525d4a8d929ea6c9a7e9602fb324771e813046f..f6305781539cbc1570f3b530af144f7109c39ec1 100644 (file)
@@ -28,7 +28,7 @@ else
        exit 0
 fi
                        
-
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -70,12 +70,12 @@ case "$1" in
                rm -f /var/run/sshd.pid /var/lock/subsys/sshd >/dev/null 2>&1
        else
                msg_not_running OpenSSH
-               exit 1
        fi      
        ;;
   restart)
        $0 stop
        $0 start
+       exit $?
        ;;
   status)
        status sshd
@@ -93,19 +93,19 @@ case "$1" in
        chmod 600 /etc/ssh/ssh_host_dsa_key
        exit $?
        ;;
-  reload)
+  reload|force-reload)
        if [ -f /var/lock/subsys/sshd ]; then
                msg_reloading OpenSSH
                killproc sshd -HUP
                RETVAL=$?
        else
-               msg_not_running OpenSSH
-               exit 1
+               msg_not_running OpenSSH >&2
+               exit 7
        fi
        ;;
   *)
-       msg_usage "$0 {start|stop|init|restart|reload|status}"
-       exit 1
+       msg_usage "$0 {start|stop|init|restart|reload|force-reload|status}"
+       exit 3
 esac
 
 exit $RETVAL
This page took 0.213047 seconds and 4 git commands to generate.