tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Mirat Satoglu <mirat () bornova ! ege ! edu ! tr>
To: tru64-unix-managers
Subject: sshd not starting (ADDENDUM)
Date: Thu, 01 Jul 1999 11:34:10 +0000	[thread overview]
Message-ID: <96079058315651.tru64-unix-managers.marc@archive.invalid> (raw)

Hi,
I have three responses for my problem but I could not solve it yet.
I still don't understand what is effecting my script, it works for other
machines, but for this one, although it says it is starting it is not in
fact. Strange ! 

Thanks to Paul Sand, Steve VanDevender and Ian Mortimer

Here are the responses;

From: Paul A Sand <pas@unh.edu>

We're running mostly 4.0d, but here's my /sbin/init.d/sshd script
which works OK for me (I mindlessly modified some other script):

#!/sbin/sh
PATH=/sbin:/usr/sbin:/usr/bin
export PATH

case "$1" in
'start')
    set `who -r`
    if [ $9 = "S" ]; then
        if /usr/local/sbin/sshd; then
            echo "sshd started"
        fi
    fi
    ;;
'stop')
    /bin/kill `cat /var/run/sshd.pid`
    ;;
*)
    echo "usage: $0 {start|stop}"
    ;;
esac


From: Steve VanDevender <stevev@hexadecimal.uoregon.edu>

Have you checked the init script?  Is sshd where the init script
is trying to look for it?  If sshd is there, what happens when
you run sshd directly?


From: Ian Mortimer <ian@physics.uq.edu.au>

Hi Mirat

You didn't say which version of ssh but I haven't had any problems
with ssh 1.2.26 or earlier versions using the startup script below.

About the only thing I can suggest is to try changing the starting
order.  Try it with ssh starting earlier or later.  Maybe
something else is interfering.


Ian
------------------------------CUT----------------------------------
pids=`/bin/ps -e | grep /usr/local/sbin/sshd | grep -v grep | sed -e 's/^  
*//' -e 's/ .*//'`

case $1 in
'start')
	echo "Starting Secure Shell Daemon"
	[ -n "$pids" ] && kill -9 $pids
	/usr/local/sbin/sshd
	;;
'stop')
	echo "Stopping Secure Shell Daemon"
	[ -n "$pids" ] && kill -9 $pids
	;;
*)
	echo "usage: $0 {start|stop}"
	;;
esac




Here is my question: 
Dear managers,

I have secure shell installed on my dec3000/m500 with 0sf v.3.2.c , but
after reboot, although it says
 
>starting sshd
>sshd is ready

It does not start and each time , I execute /sbin/init.d/sshd to start it.
Except the nis , I have other dec 3000/m400 machines with the same os but
c2 enabled, and they work well. Any idea ?

Mehmet Mirat Satoglu

                 reply	other threads:[~1999-07-01 11:34 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