Aleksander,
I can't imagine it would have taken too long to knock one up but seeing
as it's Friday and I'm in a good mood, have this one
Rgds
Paul
-------------------------------------------------------------------------
#!/bin/sh
if [ ! -d /usr/bin ]
then # /usr not mounted
exit
fi
killproc() { # kill the named process(es)
pid=`/usr/bin/ps -e |
/usr/bin/grep -w $1 |
/usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
[ "$pid" != "" ] && kill $pid
}
# Start/stop processes
case "$1" in
'start')
/usr/local/sbin/sshd &
;;
'stop')
killproc sshd
;;
*)
echo "Usage: /etc/init.d/sshd { start | stop }"
;;
esac
-------------------------------------------------------------------------
> Hi,
>
> I accidentally erased my sshd start-up script. can smone email me a
> copy?
>
> thank you,
> avm
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]