self_update checks the fetched agent sha and bash -n, then replaces the script, and systemd starts the new one. A new agent that fails at runtime keeps failing until a fixed one ships: the game servers keep running (Docker owns them), but /forge, the console, sleep and wake and syncs stop.
Done when: the update keeps the previous script beside the new one; a new agent that has not completed a sync within a set time (or exits repeatedly) is replaced by the previous one, which says so on its next sync; the forge shows the box on its old agent and why; a test in ubuntu:24.04 proves both paths.
self_update checks the fetched agent sha and bash -n, then replaces the script, and systemd starts the new one. A new agent that fails at runtime keeps failing until a fixed one ships: the game servers keep running (Docker owns them), but /forge, the console, sleep and wake and syncs stop.
Done when: the update keeps the previous script beside the new one; a new agent that has not completed a sync within a set time (or exits repeatedly) is replaced by the previous one, which says so on its next sync; the forge shows the box on its old agent and why; a test in ubuntu:24.04 proves both paths.