Merge "Fix the logic error in hostwd"
This commit is contained in:
commit
b6e26db632
|
@ -127,7 +127,7 @@ void hostw_service ( void )
|
|||
ilog ("Did not receive expected message from PMON - first missed message\n");
|
||||
}
|
||||
ctrl->pmon_grace_loops--;
|
||||
if ( ctrl->pmon_grace_loops <= 2 )
|
||||
if ( ctrl->pmon_grace_loops )
|
||||
{
|
||||
ilog ("Did not receive expected message from PMON - %d more missed messages allowed\n",
|
||||
ctrl->pmon_grace_loops);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
[config] ; Configuration
|
||||
hostwd_reboot_on_err = 1 ; host watchdog to reboot on detected failure
|
||||
hostwd_failure_threshold = 5 ; number of # missed messages before action taken
|
||||
hostwd_failure_threshold = 3 ; number of # missed messages before action taken
|
||||
hostwd_use_kern_wd = 1 ; use kernel /dev/watchdog as backup watchdog
|
||||
hostwd_console_path = /dev/console ; console on which to log extreme events, like
|
||||
; notification of reboot
|
||||
|
|
Loading…
Reference in New Issue