docs: update watchdog headers — single-pass cron model, correct caller refs, stability vs system watchdog

This commit is contained in:
Gmer4Lfe
2026-06-01 19:31:16 -04:00
parent ee26eebc6b
commit d3454a3dab
6 changed files with 20 additions and 26 deletions
+6 -6
View File
@@ -1,14 +1,14 @@
#!/bin/bash
# ==============================================================================================
# ================================= System Watchdog ============================================
# ================================= Stability Watchdog =========================================
# ==============================================================================================
#
# PURPOSE
# ─────────────────────────────────────────────────────────────────────────────
# Last line of defense — reboots the system cleanly if it is about to become
# unstable. Runs continuously as a background process started by
# array_started.sh at array start. Works alongside docker_watchdog.sh which
# handles container-level healing first. Only escalates to reboot when
# unstable. Called by watchdog_orchestrator.sh via cron every 15 minutes as a
# single-pass run. Works alongside docker_watchdog.sh which handles
# container-level healing first. Only escalates to reboot when
# docker_watchdog.sh cannot resolve the condition.
#
# ==============================================================================================
@@ -92,7 +92,7 @@
# ==============================================================================================
#
# stability_watchdog.sh
# Start continuous monitoring loop. Runs until stopped or system reboots.
# Single-pass stability check — called by watchdog_orchestrator.sh every 15 min
#
# stability_watchdog.sh --dry-run
# Run detection logic without rebooting or stopping containers.
@@ -172,7 +172,7 @@ if [[ "$SHOW_STATUS" == true ]]; then
echo "$ICON_GEAR Zombie limit: ${SYS_WATCHDOG_ZOMBIE_LIMIT}"
echo "$ICON_GEAR CPU temp max: ${SYS_WATCHDOG_CPU_TEMP_MAX}°C"
echo "$ICON_GEAR Strike limit: ${SYS_WATCHDOG_STRIKE_LIMIT} cycles"
echo "$ICON_TIME Interval: 60s (cron — every minute)"
echo "$ICON_TIME Schedule: every 15 min (cron via watchdog_orchestrator)"
echo "$ICON_REBOOT_SMART Reboot limit: ${SYS_WATCHDOG_REBOOT_LIMIT} in ${SYS_WATCHDOG_REBOOT_WINDOW_HRS}hr"
echo ""
echo ""