Header/code audit fixes across all core scripts
Behavior fixes: - docker_daily_restart.sh: implement RESTART_VERIFY_WAIT sleep before verify_running() — variable was logged as config but never applied - cert_monitor.sh: --log now shows expiry date and days remaining for healthy domains in the per-domain summary; problems always show details Header corrections: - downloaders_reset.sh: fix frequency contradiction (15 min → 30 min) - lidarr_cleanup.sh: Emby scan triggers on actual deletions, not every run - ssh_setup.sh: document --local-only flag in USAGE section - zfs_memory_snapshot.sh: clarify dry-run skips log write in PURPOSE - ramdisk_stop.sh / ramdisk_setup.sh: document TRANSCODE_STATE_FILE var - smart_long_test.sh: remove SMART_TEMP_WARN/CRIT — not used in code
This commit is contained in:
@@ -82,6 +82,11 @@
|
||||
# CONTAINER_DELAY
|
||||
# Seconds to wait after restarting a dependency before starting its dependents
|
||||
#
|
||||
# RESTART_VERIFY_WAIT
|
||||
# Seconds to wait after docker restart before checking the container is running.
|
||||
# Gives the process time to initialise before verify_running samples the state.
|
||||
# (default: 3)
|
||||
#
|
||||
# ==============================================================================================
|
||||
# RUNTIME MODES
|
||||
# ==============================================================================================
|
||||
@@ -266,7 +271,7 @@ for container in "${ORDERED_RESTART[@]}"; do
|
||||
RESTARTED+=("$container")
|
||||
else
|
||||
if retry_docker docker restart "$container"; then
|
||||
# Verify container stayed running after restart
|
||||
[[ "${RESTART_VERIFY_WAIT:-3}" -gt 0 ]] && sleep "${RESTART_VERIFY_WAIT:-3}"
|
||||
if verify_running "$container"; then
|
||||
log "$ICON_STARTED $container restarted and running in $(format_duration $(( $(date +%s) - c_start ))) ✅"
|
||||
RESTARTED+=("$container")
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
#
|
||||
# Lock Acquisition
|
||||
# acquire_lock "wait" — waits for previous run to finish since this runs every
|
||||
# 15 minutes and prior execution may still be completing.
|
||||
# 30 minutes and prior execution may still be completing.
|
||||
#
|
||||
# ==============================================================================================
|
||||
# CONFIGURATION
|
||||
|
||||
Reference in New Issue
Block a user