From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079067216222.tru64-unix-managers.marc@archive.invalid> From: Rolf-Peter Kienzle Date: Sun, 29 Aug 1999 17:01:24 +0000 To: tru64-unix-managers Subject: SUMMARY: Initializing sshd X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079067216222 Dear managers! Thanks a lot for your instantaneous help! In particular I wish to thank Jim Bostwick Steve VanDevender Goetz Golla "Sean O'Connell" Oyanarte Portilho 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@uni-freiburg.de