CCL Home Page
Up Directory CCL run-sshd.txt
#!/sbin/sh

IS_ON=/sbin/chkconfig
SSHD=/usr/local/sbin/sshd
KILLALL=/sbin/killall

if $IS_ON run-sshd; then
    :
else
    exit 0
fi

if $IS_ON verbose ; then
    ECHO=echo
    VERBOSE=-v
else            # For a quiet startup and shutdown
    ECHO=:
    VERBOSE=
fi


case "$1" in
'start')
        $ECHO -n "Starting sshd:\n"
        $KILLALL $SSHD
        $SSHD
        ;;

'stop')
        $ECHO -n "Stopping sshd:\n"
        $KILLALL $SSHD
        ;;

*)
    $ECHO "usage: $0 {start|stop}"
    exit 1
    ;;
esac


Modified: Wed Apr 18 03:44:55 2001 GMT
Page accessed 360 times since Tue Mar 15 13:08:11 2005 GMT