tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Initializing sshd
@ 1999-08-29 17:01 Rolf-Peter Kienzle
  0 siblings, 0 replies; only message in thread
From: Rolf-Peter Kienzle @ 1999-08-29 17:01 UTC (permalink / raw)
  To: tru64-unix-managers

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

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

only message in thread, other threads:[~1999-08-29 17:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-29 17:01 SUMMARY: Initializing sshd Rolf-Peter Kienzle

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