From: mjacob@feral.com (Matthew Jacob) To: ylo@cs.hut.fi Subject: solaris addition to sshd Date: Mon, 12 Aug 96 10:21:38 PDT Reply-To: mjacob@feral.com To autostart for solaris (SYSV) type machines- create this as /etc/rc2.d/S99sshd: #! /bin/sh # # start/stop the secure shell deamon case "$1" in 'start') # Start the audit deamon if [ -f /usr/local/sbin/sshd ]; then echo "starting SSHD daemon" /usr/local/sbin/sshd & fi ;; 'stop') # Stop the audit deamon PID=`/usr/bin/ps -e -u 0|/usr/bin/fgrep sshd|/usr/bin/awk '{print $1}'` if [ ! -z "$PID" ] ; then /usr/bin/kill ${PID} 1>/dev/null 2>&1 fi ;; esac