From: Pascal Robert <probert () osci ! qc ! ca>
To: tru64-unix-managers
Subject: SSH not starting up at boot
Date: Tue, 02 Apr 2002 14:11:15 +0000 [thread overview]
Message-ID: <102653755322158.tru64-unix-managers.marc@archive.invalid> (raw)
Hi list,
I installed OpenSSH 2.9.9p2 (will update to 3.x soon) on a Alpha Server 800.
I created a startup script in /sbin/init.d called 'sshd' but when the server
reboot, sshd is not started. BUT if I start it manually after boot ('sh
/sbin/init.d/sshd start'), it do work. Anything missing ?
Permissions on script is:
# ls -l /sbin/init.d/sshd
-rwxr-x--- 1 bin bin 416 Apr 2 09:06 /sbin/init.d/sshd
Script code:
#
#!/sbin/sh
#
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
KILL="/bin/kill"
Pid=`/sbin/init.d/bin/psmgetpid sshd`
case "$1" in
'start')
if /usr/sbin/sshd ; then
echo "SSHD started"
else
echo "Cannot start SSHD"
fi
;;
'stop')
if [ "X$Pid" != "X" ]; then
$KILL $Pid
fi
;;
*)
echo "usage: $0 {start|stop}"
;;
Esac
reply other threads:[~2002-04-02 14:11 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