Ver. 1.0, 1999/7/5
#!/bin/sh
# Startup script for the sshd secure shell daemon
# chkconfig: 345 86 16
. /etc/rc.d/init.d/functions
case "$1" in
start)
echo -n "Starting sshd: "
daemon sshd
echo
touch /var/lock/subsys/sshd
;;
stop)
echo -n "Shutting down sshd: "
killproc sshd
echo
rm -f /var/lock/subsys/sshd
;;
status)
status sshd
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: sshd.init {start|stop|restart|status}"
exit 1
esac
exit 0
# ln -s ../init.d/sshd /etc/rc.d/rc3.d/S86sshd # ln -s ../init.d/sshd /etc/rc.d/rc4.d/S86sshd # ln -s ../init.d/sshd /etc/rc.d/rc5.d/S86sshd # ln -s ../init.d/sshd /etc/rc.d/rc0.d/K16sshd # ln -s ../init.d/sshd /etc/rc.d/rc1.d/K16sshd # ln -s ../init.d/sshd /etc/rc.d/rc2.d/K16sshd # ln -s ../init.d/sshd /etc/rc.d/rc6.d/K16sshd