After a reload, if a script was successful before reload and is still
present in the new configuration, its result was set to rise value to
keep its success status. However, in vrrp_init_script(), it was not
registered any more. Therefore, we set result to
VRRP_SCRIPT_STATUS_INIT_GOOD on reload and this will be changed to
rise value in vrrp_init_script() later (while registering it).
if (nvscript) {
log_message(LOG_INFO, "VRRP_Script(%s) considered successful on reload",
nvscript->sname);
- nvscript->result = nvscript->rise;
+ nvscript->result = VRRP_SCRIPT_STATUS_INIT_GOOD;
}
}
}