3 # Init file for OpenSSH sshd
5 # chkconfig: 2345 55 25
6 # description: OpenSSH server daemon
9 # config: /etc/ssh/ssh_host_key
10 # config: /etc/ssh/ssh_host_key.pub
11 # config: /etc/ssh/ssh_random_seed
12 # config: /etc/ssh/sshd_config
13 # pidfile: /var/run/sshd.pid
15 # source function library
16 . /etc/rc.d/init.d/functions
22 echo -n "Starting sshd: "
25 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sshd
29 echo -n "Shutting down sshd: "
32 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd
45 echo "Usage: sshd {start|stop|restart|status}"