#! /bin/sh # # chkconfig: - 60 20 # description: The ssh protocol allows secure logins. # processname: rpc.rusersd # Source function library. . /etc/rc.d/init.d/functions # Get config. . /etc/sysconfig/network # Check that networking is up. if [ ${NETWORKING} = "no" ] then exit 0 fi # See how we were called. case "$1" in start) echo -n "Starting ssh services: " daemon /usr/local/sbin/sshd echo touch /var/lock/subsys/sshd ;; stop) echo -n "Stopping ssh services: " killproc sshd echo rm -f /var/lock/subsys/sshd ;; status) status sshd ;; restart|reload) $0 stop $0 start ;; *) echo "Usage: sshd {start|stop|status|restart}" exit 1 esac exit 0