Skip to content

Fix supervisor exiting after restart-all#164

Merged
mattn merged 1 commit into
masterfrom
fix-restart-all-exit
Jul 8, 2026
Merged

Fix supervisor exiting after restart-all#164
mattn merged 1 commit into
masterfrom
fix-restart-all-exit

Conversation

@mattn

@mattn mattn commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Procs started at boot are tracked by a WaitGroup, but procs started again via the RPC Start/Restart handlers were not, so once every proc had been stopped once (e.g. by restart-all) the supervisor considered all procs done and exited.

Route start/restart RPC messages through the supervisor loop so restarted procs are registered in the same WaitGroup, and hold the counter during the stop/start window of a restart. Also give each RPC server its own rpc.Server instance so repeated startServer calls in one process do not serve a stale registration.

Fixes #112

@mattn
mattn merged commit 8952c18 into master Jul 8, 2026
2 checks passed
@mattn
mattn deleted the fix-restart-all-exit branch July 8, 2026 02:29
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.

restart-all causes goreman to quit

1 participant