Skip to content

fix(installer): restart running service after OpenWrt updates - #763

Merged
stackia merged 1 commit into
mainfrom
codex/fix-installer-service-restart
Sep 10, 2026
Merged

fix(installer): restart running service after OpenWrt updates#763
stackia merged 1 commit into
mainfrom
codex/fix-installer-service-restart

Conversation

@stackia

@stackia stackia commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Updating with the OpenWrt installer could leave the old process running, so the status page continued to show the previous version. Capture the service state before package installation and restart previously running services after all packages install successfully.

Wait up to 10 seconds for procd to report a running instance. Restart failures and startup timeouts return an error with recovery instructions. Fresh installations and previously stopped services retain manual-start instructions.

Validation: shell syntax and diff checks, plus 12 mocked shell scenarios covering opkg/apk, running/stopped services, asynchronous startup, restart failure, startup timeout, and package failure. Not yet tested on a physical OpenWrt device.

Fixes #762


Note

Low Risk
Installer-only behavior change with no auth or data-path impact; main risk is a brief service interruption or a failed restart after packages already installed.

Overview
The OpenWrt quick installer now records whether rtp2httpd was running before opkg/apk installs, then restarts it after a successful upgrade so the new binary actually runs (fixing stale version on the status page).

A new restart_service path runs /etc/init.d/rtp2httpd restart, polls for up to 10 seconds for procd to report running, and surfaces bilingual errors with manual recovery steps if restart or startup fails. Users are warned that active playback may briefly disconnect; fresh installs or stopped services still get the manual “start the service” next step.

Reviewed by Cursor Bugbot for commit 1e49cc9. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

Documentation preview

The documentation preview has been deployed for this pull request.

@stackia
stackia marked this pull request as ready for review September 10, 2026 09:13
@cursor

cursor Bot commented Sep 10, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_7cc38ebd-586a-4dd6-9036-43f2d6828f92)

@stackia
stackia merged commit 0a4ec7e into main Sep 10, 2026
12 checks passed
@stackia
stackia deleted the codex/fix-installer-service-restart branch September 10, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

状态面板的版本号一直停留在3.14.3

1 participant