Dear managers!
Thanks a lot for your instantaneous help! In particular I wish to thank
Jim Bostwick <Jim_Bostwick_at_cargill.com>
Steve VanDevender <stevev_at_hexadecimal.uoregon.edu>
Goetz Golla <golla_at_intetra.net>
"Sean O'Connell" <sean_at_stat.duke.edu>
Oyanarte Portilho <portilho_at_fis.unb.br>
who sent their scripts along. One of these I put at the very end of this
message.
Making an entry into /etc/inittab was strongly discouraged. The general
consensus was to put the startup script (lets call it sshd for
convenience) into /sbin/init.d and link it to /sbin/rc3.d by means of
ln -s /sbin/init.d/sshd /sbin/rc3.d/S97sshd
Now everything works fine for me.
Regards
Peter
-SNIP-------------------------------------------------------------------
#!/sbin/sh
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
case "$1" in
'start')
if [ -f /usr/local/sbin/sshd ]; then
/usr/local/sbin/sshd
echo "ssh service started"
else
echo "Unable to start ssh service -- no
/usr/local/sbin/sshd"
exit 1
fi
;;
'stop')
pid=`cat /var/run/sshd.pid`
if [ "X$pid" != "X" ]; then
/bin/kill $pid
else
echo "No pid for ssh service found"
exit 1
fi
;;
'restart')
/sbin/init.d/sshd stop
if [ $? -ne 0 ]; then
echo " -- Could not find running sshd - attempting to
restart..."
fi
sleep 2
/sbin/init.d/sshd start
;;
*)
echo "usage: $0 {start|stop|restart}"
;;
esac
-SNIP-------------------------------------------------------------------
--
Dipl.-Phys. Rolf-Peter Kienzle
Dept. of Remote Sensing and Land Information Systems
University of Freiburg, D-79085 Freiburg, Germany
Tel/Fax +49 761 203 8643/8640 e-mail: kienzlep_at_uni-freiburg.de
Received on Sun Aug 29 1999 - 17:03:56 NZST