UPDATE: SSH not starting up at boot

From: Pascal Robert <probert_at_osci.qc.ca>
Date: Tue, 02 Apr 2002 09:26:44 -0500

I forgot one thing, I do have the symbolic link in /sbin/rc3.d/

# ls -l /sbin/rc3.d/S99ssh
lrwxrwxrwx 1 root bin 14 Dec 6 11:41 /sbin/rc3.d/S99ssh ->
../init.d/sshd

------ Forwarded Message
> From: Pascal Robert <probert_at_osci.qc.ca>
> Followup-To: poster
> Date: Tue, 02 Apr 2002 09:11:15 -0500
> To: tru64-unix-managers_at_ornl.gov
> Subject: SSH not starting up at boot
>
> 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
>

------ End of Forwarded Message
Received on Tue Apr 02 2002 - 14:26:54 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT