added more descriptions to master.conf

This commit is contained in:
2026-04-24 22:52:32 -04:00
parent 63101fdb83
commit f826672b80
3 changed files with 844 additions and 431 deletions
+9
View File
@@ -427,6 +427,15 @@ while [[ "$WATCHDOG_RUNNING" == true ]]; do
do_reboot "${TRIGGERS[@]}"
else
log "Cycle $CYCLE — system healthy ($(date '+%H:%M:%S'))"
# Heartbeat — periodic proof of life
if [[ "${SYSTEM_WATCHDOG_HEARTBEAT:-true}" == true ]]; then
local hb_seconds=$(( ${SYSTEM_WATCHDOG_HEARTBEAT_HOURS:-1} * 3600 ))
local uptime_seconds=$(( CYCLE * SYSTEM_WATCHDOG_INTERVAL ))
if (( uptime_seconds % hb_seconds < SYSTEM_WATCHDOG_INTERVAL )); then
local uptime_hr=$(( uptime_seconds / 3600 ))
info "♥ system_watchdog alive — ~${uptime_hr}hr uptime ($(date '+%H:%M:%S'))"
fi
fi
fi
# Sleep until next cycle — interruptible by SIGTERM