added more descriptions to master.conf
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user