All pastes #193401 Raw Edit

7 moi

public text v1 · immutable
·published 2006-10-06 21:10 UTC
rendered paste body
function stop() {
        gprintf "Stopping %s: " "$NAME"
        count=0
        while [ -f $LOCKFILE -a $count -lt 15 ]; do
            killproc $BINARY
            RETVAL=$?
            if [ $RETVAL -eq 0 ]; then
                rm -f $LOCKFILE
            else
                count=$(($count+1))
            fi
        done
        echo
        return $RETVAL
}