When shutting down, output from K92anacron (I assume rc0.d) is merged with
following output (in my case, IrDA utils, K96irda) and status is not
output. The reason is:

stop() {
    echo -n "Shutting down anacron "
    if test "x`pidof anacron`" != x; then killproc anacron; fi
    echo
    rm -f /var/lock/subsys/anacron
    return 0
}

If there is no anacron process, killproc is not executed and there is no
success/failure status.

Normally, killproc returns failure if process does not exits; what about
changing the above to

stop() {
    echo -n "Shutting down anacron "
    if test "x`pidof anacron`" != x
    then
        killproc anacron
    else
        success "anacron shutdwon"
    fi
    echo
    rm -f /var/lock/subsys/anacron
    return 0
}

-andrej


Reply via email to