#! /bin/sh # processname: sshd case "$1" in 'start') if [ -f /usr/local/sbin/sshd ]; then echo "starting SSHD daemon" /usr/local/sbin/sshd & fi ;; 'stop') pid=`/usr/bin/ps -e | /usr/bin/grep sshd | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` if test "$pid" then kill $pid fi ;; *) echo "usage: /etc/rc2.d/S99sshd {start|stop}" ;; esac ###