]> git.pld-linux.org Git - packages/openssh.git/commitdiff
updated
authorankry <ankry@pld-linux.org>
Tue, 6 May 2003 21:45:20 +0000 (21:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    opensshd.init -> 1.14

opensshd.init

index 21cf600fce413278286e086704ed0caab375f1e1..065134a6305db5d1273087a77086f3ef07177e7a 100644 (file)
@@ -82,9 +82,9 @@ case "$1" in
        exit $?
        ;;
   init)
-       echo "Now the SSH host key will be generated. Please note, that if you"
-       echo "will use password for the key, you will need to type it on each"
-       echo "reboot."
+       nls "Now the SSH host key will be generated. Please note, that if you"
+       nls "will use password for the key, you will need to type it on each"
+       nls "reboot."
        /usr/bin/ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key
        chmod 600 /etc/ssh/ssh_host_key
        /usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
@@ -94,8 +94,16 @@ case "$1" in
        exit $?
        ;;
   reload)
-       msg_reloading OpenSSH
-       killproc sshd -HUP
+       if [ -f /var/lock/subsys/sshd ]; then
+               msg_reloading OpenSSH
+               busy
+               killproc sshd -HUP
+               RETVAL=$?
+               [ $RETVAL -eq 0 ] && ok || died
+       else
+               msg_not_running OpenSSH
+               exit 1
+       fi
        ;;
   *)
        msg_usage "$0 {start|stop|init|restart|reload|status}"
This page took 0.03801 seconds and 4 git commands to generate.