rename: fix remaining failover refs in fallback.sh, fallback_test.sh, array_started.sh, user_script_plug-in.sh

This commit is contained in:
Gmer4Lfe
2026-06-01 20:05:02 -04:00
parent cb7d7a688d
commit f8325a7067
4 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -370,7 +370,7 @@ _abort_fallback_containers() {
# ==============================================================================================
# All docker commands wrapped in DOCKER_TIMEOUT.
# All SSH docker commands wrapped in SSH_TIMEOUT.
# Verification after start — failover is critical, confirm containers came up.
# Verification after start — fallback is critical, confirm containers came up.
# Start a container locally and verify it came up
local_start() {
@@ -996,7 +996,7 @@ while [[ "$FALLBACK_RUNNING" == true ]]; do
"Fallback" "warning"
else
# Still in failover — check tier escalation
# Still in FALLBACK state — check tier escalation
state_set handback_strikes "0"
TIER2_DELAY=$(get_tier2_delay)
@@ -1092,7 +1092,7 @@ while [[ "$FALLBACK_RUNNING" == true ]]; do
if [[ "$REMOTE_UP" == true ]]; then
warn "Remote up, internet up — transitioning through FALLBACK for handback"
# Was in failover before DARK — route through FALLBACK state for handback
# Was in FALLBACK state before DARK — route through FALLBACK state for handback
state_set state "FALLBACK"
state_set handback_strikes "0"
else
+2 -2
View File
@@ -148,7 +148,7 @@ if [[ "$EUID" -ne 0 ]]; then
exit 1
fi
# FALLBACK_ENABLED gate — no point testing if failover is disabled
# FALLBACK_ENABLED gate — no point testing if fallback is disabled
if [[ "${FALLBACK_ENABLED:-false}" == false ]]; then
warn "FALLBACK_ENABLED=false — fallback test aborted"
warn "Enable fallback in master.conf before running this test"
@@ -226,7 +226,7 @@ TOTAL_START=$(date +%s)
phase_pass() { PHASES_PASS+=("$1"); warn "$ICON_DONE Phase: $1 — PASSED ✅"; }
phase_fail() { PHASES_FAIL+=("$1"); error "Phase: $1 — FAILED ❌"; }
# Get Tier 1 containers for this server's failover responsibility
# Get Tier 1 containers for this server's fallback responsibility
TIER1_VAR="FALLBACK_${MY_ID}_COVERS_${REMOTE_ID}_TIER1"
eval "TIER1_CONTAINERS=(\"\${${TIER1_VAR}[@]:-}\")"
+1 -1
View File
@@ -20,7 +20,7 @@
# Docker_Essentials/docker_network_connect.sh — ensure networks + container connections
#
# CONTINUOUS (run until array stops):
# Fallback/fallback.sh — mutual failover monitor
# Fallback/fallback.sh — mutual fallback monitor
#
# NOTE: watchdogs (docker, system, stability) are NOT launched here.
# They run via watchdog_orchestrator.sh every 15 min (cron), not as daemons.
+4 -4
View File
@@ -53,7 +53,7 @@
# v1.0 — Initial template
# v1.1 — MAX_RSYNC_PROCS removed, --status flag, full directory tree, changelog
# v1.2 — Docker Essentials, Media, Transcodes, System Watchdog added
# v1.3 — Failover script added
# v1.3 — Fallback script added
# v1.4 — WebGUI watchdog, ZFS snapshot, Docker network connect, schedules section
# v1.5 — media_management.sh orchestrator, corrected filenames, git repo section
# v1.6 — lidarr_cleanup.sh, sonarr_cleanup.sh, radarr_cleanup.sh added
@@ -69,7 +69,7 @@
# v2.2 — Orchestrators at top with full inline detail. All child scripts listed
# individually below for standalone use. Inline descriptions on every entry.
# Correct schedules verified against script headers. sunday_morning_coffee_report
# and rsync_emby_failover added as separate scheduled entries.
# and rsync_emby_fallback added as separate scheduled entries.
# v2.3 — intermediate_sync_maintenance.sh new 4-hour orchestrator (arr_sync + artwork).
# docker_update.sh + docker_update_remaining.sh: daily/weekly image pulls.
# downloaders_reset.sh: slskd + SABnzbd + qBittorrent maintenance.
@@ -402,7 +402,7 @@
# DIGEST_PROFILE options (master.conf):
# always notify every run regardless — daily digest even when healthy
# smart notify only when something worth reporting is found:
# active watchdog strikes, non-NORMAL failover, cert within CERT_WARN_DAYS,
# active watchdog strikes, non-NORMAL fallback state, cert within CERT_WARN_DAYS,
# bandwidth event exceeded BANDWIDTH_WARN_GB
# weekly notify once per week on DIGEST_DAY (Sunday), silent all other days
#
@@ -475,7 +475,7 @@
# Tier 2 at 4hr: NextCloud + Immich + Jellyseerr
# Tier 3 at 12hr: AdGuard + Gitea + uptime monitoring
# Tier 4 at 24hr: arrs + downloaders
# Auth stack (NPM, Authelia, LLDAP) runs warm on both servers always — no failover startup delay.
# Auth stack (NPM, Authelia, LLDAP) runs warm on both servers always — no fallback startup delay.
# DDNS: one domain, one DDNS container active at all times. Split-brain prevented by design.
# Handback: stop remote DDNS → rsync writeback → start containers → start local DDNS.
#