fix widespread naming errors across all docs — array_started, fallback, FALLBACK_
array_start.sh → array_started.sh (bulk rename — actual file has always been array_started.sh; docs consistently used the wrong name across 9 files) failover.sh → fallback.sh (bulk rename — script is Fallback/fallback.sh; docs used the old name throughout) FAILOVER_HOST2_RUNS_FOR_HOST1_TIER1 → FALLBACK_HOST2_COVERS_HOST1_TIER1 (README.md — wrong variable name, actual vars use FALLBACK_ prefix and COVERS_ not RUNS_FOR_) docker_watchdog.sh attribution: "started by array_started.sh" → "called every minute by watchdog_orchestrator.sh" (docker_watchdog is not in ARRAY_START_SCRIPTS) server_reboot.sh shutdown sequence: step 7 "rc.docker stop" → calls array_stopping.sh (user_scripts, fallback, rsync, mover, docker_container_stop) Rsync manual ARRAY_START_SCRIPTS list: removed stability_watchdog and docker_watchdog (now in watchdog_orchestrator); failover → fallback
This commit is contained in:
@@ -86,7 +86,7 @@ filter might run after containers have already created veth interfaces. PHP-FPM
|
||||
tuning might run after the WebGUI has already served its first requests. Each
|
||||
script competes for the same startup slot with no guaranteed order.
|
||||
|
||||
The fix: `array_start.sh` is the only "At Startup of Array" entry. It launches
|
||||
The fix: `array_started.sh` is the only "At Startup of Array" entry. It launches
|
||||
every startup script in a defined order, with one-second settle between each, and
|
||||
reports which succeeded and which failed. Order is guaranteed. Nothing starts before
|
||||
its dependency. Everything is visible in a single summary.
|
||||
@@ -99,7 +99,7 @@ The User Scripts plugin contains exactly these entries:
|
||||
|
||||
```bash
|
||||
# At Startup of Array — single entry for all startup scripts:
|
||||
array_start.sh
|
||||
array_started.sh
|
||||
|
||||
# Cron — one entry per maintenance window:
|
||||
*/3 * * * * transcode_management.sh
|
||||
@@ -178,7 +178,7 @@ without `--log`.
|
||||
---
|
||||
|
||||
## ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
## 🚀 array_start.sh
|
||||
## 🚀 array_started.sh
|
||||
## ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
Single "At Startup of Array" entry for the entire ecosystem. Launches every startup
|
||||
@@ -265,16 +265,16 @@ ARRAY_START_SCRIPTS=(
|
||||
```bash
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
# Normal — called by User Scripts at array start. Never run manually in production.
|
||||
# array_start.sh runs once and exits — the continuous scripts it launched
|
||||
# array_started.sh runs once and exits — the continuous scripts it launched
|
||||
# keep running as background processes.
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
array_start.sh
|
||||
array_started.sh
|
||||
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
# Dry run — show what would be launched, in order, without launching anything.
|
||||
# Use to verify the ARRAY_START_SCRIPTS list before an array restart.
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
array_start.sh --dry-run
|
||||
array_started.sh --dry-run
|
||||
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
# Status — show each configured script with its current running state.
|
||||
@@ -282,7 +282,7 @@ array_start.sh --dry-run
|
||||
# not running — one-shot that has completed, or continuous not yet started
|
||||
# FILE NOT FOUND — script path wrong or missing
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
array_start.sh --status
|
||||
array_started.sh --status
|
||||
```
|
||||
|
||||
---
|
||||
@@ -660,7 +660,7 @@ DAILY_MAINTENANCE_SCRIPTS=(
|
||||
|
||||
```bash
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
# The same HOST*_DAILY_SYNC_SHARES lists are used by failover.sh for Tier 4
|
||||
# The same HOST*_DAILY_SYNC_SHARES lists are used by fallback.sh for Tier 4
|
||||
# writeback — but in the opposite direction.
|
||||
#
|
||||
# Normal (daily_sync_maintenance.sh):
|
||||
@@ -896,7 +896,7 @@ media_management.sh --status # show configured job list and exit
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
# At Startup of Array — single entry:
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
array_start.sh
|
||||
array_started.sh
|
||||
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
# Frequent — every 3 minutes:
|
||||
|
||||
Reference in New Issue
Block a user