contrib/package/freifunk-watchdog: reset hysteresis counter if test condition is normal
This commit is contained in:
parent
dc4b478e7b
commit
6a9d7ac70c
1 changed files with 4 additions and 0 deletions
|
@ -347,10 +347,14 @@ static int do_daemon(void)
|
|||
/* Check crond */
|
||||
if( find_process("crond") < 0 )
|
||||
restart_cron++;
|
||||
else
|
||||
restart_cron = 0;
|
||||
|
||||
/* Check SSHd */
|
||||
if( find_process("dropbear") < 0 )
|
||||
restart_sshd++;
|
||||
else
|
||||
restart_sshd = 0;
|
||||
|
||||
/* Check wireless interfaces */
|
||||
ifs = load_wifi_uci(ifs, &modtime);
|
||||
|
|
Loading…
Reference in a new issue