[Linux-HA] BUG: Lifetime rule?
Max Hofer
max.hofer at apus.co.at
Sun Feb 25 08:55:36 MST 2007
On Sunday 25 February 2007 14:27, Max Hofer wrote:
> My implementation is the following:
> * the stop operation of the resource agent maps an attribute in the CIB
> with a dampen delete operation, something like
> restart_hysteresis() {
> local hysteresis=${1:="30s"} # set default restart hysteresis to 30 seconds
> attrd_updater -d 0 -n resource-stopped -v true
> sleep 0.5 # this is needed or no attribute is set (!!! a bug IMHO)
> attrd_updater -d "$hysteresis" -n resource-stopped -v true
> }
The last stament is not correct, it should dletee the attribute.
restart_hysteresis() {
local hysteresis=${1:="30s"} # set default restart hysteresis to 30 seconds
attrd_updater -d 0 -n resource-stopped -v true
sleep 0.5 # this is needed or no attribute is set (!!! a bug IMHO)
attrd_updater -d "$hysteresis" -n resource-stopped
}
More information about the Linux-HA
mailing list