Thanks for all the quick responses, all of which were some variation on
Tom Webster's(below.)
-Mike Sierk
Brian Hostetter
Sidney Pio de Campos
Joseph L. Hill
Jonathan Reed
Mullin, Stephen
Ian Mortimer
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Michael Sierk email: mls5w_at_virginia.edu
Pharmacology Dept./Biophysics Program Phone(W): (804) 243-6725
Jordan Hall, Rm 5213, Box 448 HSC (H): (804) 970-2268
University of Virginia Fax: (804) 924-9057
http://www.people.virginia.edu/~mls5w
-------------------------------------------------------------------
"If at first you do succeed, try not to act surprised."
-Anonymous.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
---------- Forwarded message ----------
Date: Tue, 18 Aug 1998 12:06:06 -0700
From: Tom Webster <webster_at_ssdpdc.lgb.cal.boeing.com>
To: mls5w_at_unix.mail.virginia.edu
Subject: Re: sshd
Michael,
> How do I make sshd start upon booting an alpha 600au running DU4.0D?
In the contrib directory on the server you d/led ssh from, there should
be a file called: ssh-sysv-startup-script
----- snip ----- snip ----- snip ----- snip ----- snip -----
#!/bin/sh
#
# Start/Stop the secure shell daemon.
#
# Written by Michael Haardt, 1996.
PATH=/bin:/usr/bin:/usr/local/bin:/usr/local/sbin
SSHD=/usr/local/sbin/sshd
PID=/var/run/sshd.pid
case $1 in
#{{{script}}}#{{{ start
'start')
start=false
if [ ! -s $PID ]
then
start=true
else
kill -0 `cat $PID` >/dev/null 2>&1 || start=true
fi
if [ $start = true -a -x $SSHD ]
then
$SSHD
echo 'Secure shell daemon started.'
else
echo 'Secure shell daemon not started.'
fi
;;
#}}}
#{{{ stop
'stop')
if [ -s $PID ]
then
if kill `cat $PID` >/dev/null 2>&1
then
echo 'Secure shell daemon terminated.'
fi
fi
;;
#}}}
#{{{ *
*)
echo 'Usage: /etc/init.d/sshd start|stop'
;;
#}}}
esac
# EOF sshd
----- snip ----- snip ----- snip ----- snip ----- snip -----
1. Copy this file to /sbin/init.d/sshd
2. Make the file safe:
chmod og-w /sbin/init.d/sshd
3. Make the file executable:
chmod a+x /sbin/init.d/sshd
4. Make a link into /sbin/rc3.d to automatically start sshd:
ln -s /sbin/init.d/sshd /sbin/rc3.d/S70sshd
5. Make a link into /sbin/rc0.d and /sbin/rc2.d to shutdown
ssh when the system is changing run levels:
ln -s /sbin/init.d/sshd /sbin/rc0.d/K24sshd
ln -s /sbin/init.d/sshd /sbin/rc2.d/K24sshd
Tom
--
+-----------------------------------+---------------------------------+
| Tom Webster | "Funny, I've never seen it |
| SysAdmin MDA-SSD ISS-IS-HB-S&O | do THAT before...." |
| webster_at_ssdpdc.lgb.cal.boeing.com | - Any user support person |
+-----------------------------------+---------------------------------+
| Unless clearly stated otherwise, all opinions are my own. |
+---------------------------------------------------------------------+
Received on Tue Aug 18 1998 - 22:17:44 NZST