UPDATE: sshd weirdness

From: Mike's List (mikelist@sky.net)
Date: Fri Jan 10 2003 - 12:57:33 EST


Ok, quite a few asked to see the script (below) --Solaris 8 2/02 running
sunfreeware.com openssh 3.5p1 --a couple of suggestions below doing

/bin/sh -x /etc/init.d/sshd stop

...to see what's going on, I'm in the server remotely right now so I can't
stop/start (because stop would just kills all the sshd processes and I
can't get back in to start).

- Mike

#!/bin/sh
pid=`/usr/bin/ps -e | /usr/bin/grep sshd | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
case $1 in
'start')
        /usr/local/sbin/sshd
;;
'stop')
        if [ "${pid}" != "" ]
        then
                /usr/bin/kill ${pid}
        fi
        ;;
*)
        echo "usage: /etc/init.d/sshd {start|stop}"
        ;;
esac
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:34 EDT