From: Rolf-Peter Kienzle <kienzlep () uni-freiburg ! de>
To: tru64-unix-managers
Subject: SUMMARY: Initializing sshd
Date: Sun, 29 Aug 1999 17:01:24 +0000 [thread overview]
Message-ID: <96079067216222.tru64-unix-managers.marc@archive.invalid> (raw)
Dear managers!
Thanks a lot for your instantaneous help! In particular I wish to thank
Jim Bostwick <Jim_Bostwick@cargill.com>
Steve VanDevender <stevev@hexadecimal.uoregon.edu>
Goetz Golla <golla@intetra.net>
"Sean O'Connell" <sean@stat.duke.edu>
Oyanarte Portilho <portilho@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@uni-freiburg.de
reply other threads:[~1999-08-29 17:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox