fix: clear daemon_confirmed_down unconditionally when daemon healthy

Previously only cleared inside the strikes>0 block. After a reboot,
strikes reset to 0 but the flag persists on flash — daemon could be
healthy but flag stays true, causing stability_watchdog to keep striking.

Now cleared on every healthy docker info check regardless of strike count.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gmer4Lfe
2026-05-31 14:40:08 -04:00
co-authored by Claude Sonnet 4.6
parent f6fb3add77
commit cce6fc5b65
+3 -1
View File
@@ -528,8 +528,10 @@ check_docker_daemon() {
WATCHDOG_DAEMON_RESTARTED=false
set_strikes "daemon_strikes" 0 "$WATCHDOG_STATE_FILE"
set_strikes "daemon_restarted_flag" "false" "$WATCHDOG_STATE_FILE"
set_strikes "daemon_confirmed_down" "false" "$WATCHDOG_STATE_FILE"
fi
# Always clear confirmed-down flag when daemon is healthy — unconditional so it
# clears correctly after a reboot (strikes reset to 0 but flag persists on flash).
set_strikes "daemon_confirmed_down" "false" "$WATCHDOG_STATE_FILE"
return 0
fi