From 6220387ed6e2671231a20db44c96f0be1ad41020 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 1 Nov 2026 17:59:05 +1100 Subject: [PATCH] fix(install): restart running services on reinstall (#1716) --- CHANGELOG.md | 4 ++++ install.sh | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ab71eff3..486f60703 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/install.sh b/install.sh index d92847496..56dafa002 100755 --- a/install.sh +++ b/install.sh @@ -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