Hi All,
Thanks for the fast responses. Thanks to responses
from Nikola Milutinovic, Gerhard Nolte, Bob Bumpus and
a few others, the word is that I am supposed to start
sshd2 from /sbin/rc3.d/S..sshd (where .. stands for a
2 digit number identifying the order in which the
various jobs start). This is supposed to have a
symbolic link to /sbin/init.d/sshd, which is a script
which checks for the server and runs it.
--------------------------
/sbin/init.d/sshd
------------------------------------------------------------
#!/sbin/sh
PATH=/sbin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
export PATH
Pid=`/sbin/init.d/bin/getpid /usr/local/sbin/sshd
-uroot`
case "$1" in
'start')
if [ "X$Pid" = "X" ]
then
if /usr/local/sbin/sshd; then
echo "Secure Shell OpenSSH
2.9p1 started."
else
echo "Unable to start Secure
Shell services"
fi
fi
;;
'stop')
if [ "X$Pid" != "X" ]
then
set `who -r`
Sig="TERM"
/bin/kill -$Sig $Pid
fi
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
-------------------------------------------------------------
cd /sbin/rc3.d ; ln -s ../init.d/sshd S58sshd
cd /sbin/rc2.d ; ln -s ../init.d/sshd K03sshd
cd /sbin/rc0.d ; ln -s ../init.d/sshd K02sshd
------------
The last 3 commands create the symbolic links that
start the deamon.
Thanks all! it works now. I have so far had no
problems with the forking of the deamon consuming cpu.
-Sauri
__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/
Received on Sat Jun 16 2001 - 04:56:20 NZST