fix: restart the service after a branch build installs #151

Merged
mysticalsoap merged 3 commits from fix/install-script-service-restart into trunk 2026-08-24 15:16:38 -04:00
Owner

Problem

build-branch-and-install.sh installs the new package but leaves the root service running the old code. During #146's live verification this produced a confusing symptom: the import "failed with no error" because the running service predated the build that logs handled failures. The .install hook's restart reminder scrolls past inside makepkg output, and the GUI's version-mismatch warning compares VERSION, which dev builds share on both sides.

Fix

The script runs sudo systemctl try-restart aqomui after makepkg -si and prints a reminder to relaunch the GUI.

Verification

bash -n clean; the failure mode it prevents is exactly what happened live at 14:24 today (package installed 14:24:39, service still running since 14:10:27).

🤖 Generated with Claude Code

## Problem `build-branch-and-install.sh` installs the new package but leaves the root service running the old code. During #146's live verification this produced a confusing symptom: the import "failed with no error" because the running service predated the build that logs handled failures. The `.install` hook's restart reminder scrolls past inside makepkg output, and the GUI's version-mismatch warning compares `VERSION`, which dev builds share on both sides. ## Fix The script runs `sudo systemctl try-restart aqomui` after `makepkg -si` and prints a reminder to relaunch the GUI. ## Verification `bash -n` clean; the failure mode it prevents is exactly what happened live at 14:24 today (package installed 14:24:39, service still running since 14:10:27). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix: restart the service after a branch build installs
All checks were successful
ci / test (pull_request) Successful in 30s
28280d3b78
The live-verification loop installed a new package while the root
service kept executing the old code - a handled import failure then
looked like silence because the running service predated the build
that logs those. The .install hook's restart reminder scrolls past
inside makepkg output, and the gui's mismatch warning compares VERSION,
which dev builds share on both sides.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
change: ask before restarting the service after install
All checks were successful
ci / test (pull_request) Successful in 34s
1a4b07a3b5
Restarting drops any active tunnel, so it should not happen silently.
Default yes on Enter; EOF (non-interactive) skips and prints the
command instead.

Meant to be squashed into the restart commit before merge.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
change: the restart covers the gui too
All checks were successful
ci / test (pull_request) Successful in 25s
ci / test (push) Successful in 34s
684cd38b68
A build changes both halves; bouncing only the service leaves the gui
executing old code with nothing warning about it (dev builds share
VERSION). SIGTERM instead of the tray-quit path deliberately leaves an
active tunnel to the service.

Meant to be squashed before merge.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
mysticalsoap deleted branch fix/install-script-service-restart 2026-08-24 15:16:38 -04:00
Sign in to join this conversation.
No description provided.