tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: sshd2 problems
@ 2001-06-16  4:53 Sauri Gudlavalleti
  0 siblings, 0 replies; only message in thread
From: Sauri Gudlavalleti @ 2001-06-16  4:53 UTC (permalink / raw)
  To: tru64-unix-managers

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-16  4:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-16  4:53 SUMMARY: sshd2 problems Sauri Gudlavalleti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox