fix(install): restart running services on reinstall (#1716)
Quality / check (push) Successful in 3m32s
deploy / gate (push) Successful in 7m18s
deploy / archied-image (push) Successful in 3m4s
deploy / agent-image (push) Successful in 11s
deploy / dist-zip (push) Skipped

This commit is contained in:
sam committed 2026-11-01 17:59:05 +11:00
1 parent efd3eb2854
commit 6220387ed6
2 files changed
+8 -2

No files matched your search

+4
View File
@@ -5,6 +5,10 @@ release's per-component sections are labelled beneath its heading.
## [Unreleased]
### archied
- Running `install.sh` over an install whose services are already running now restarts them, so they run the new binaries.
## [1.57.0] - 2026-10-31
### archied
+4 -2
View File
@@ -475,10 +475,12 @@ EOF
fi
# Auto-enable and start the services, the store first so a fresh boot does
# not race a dial it depends on.
# not race a dial it depends on. Restart rather than start, because a
# reinstall over running services would otherwise leave the old binaries
# running.
if [ "${AUTO_START}" = true ]; then
echo "==> Enabling and starting Archie services..."
systemctl --user enable --now $INSTANCE_UNITS ||
{ systemctl --user enable $INSTANCE_UNITS && systemctl --user restart $INSTANCE_UNITS; } ||
echo " Notice: Could not start every service automatically. Check: systemctl --user status ${INSTANCE_UNITS}"
fi
fi