Skip to content

feat(service): add StopTimeout option to wait for Unit.Start to exit#60

Merged
vasayxtx merged 1 commit into
acronis:masterfrom
vasayxtx:stop-timeout-for-service-start
May 13, 2026
Merged

feat(service): add StopTimeout option to wait for Unit.Start to exit#60
vasayxtx merged 1 commit into
acronis:masterfrom
vasayxtx:stop-timeout-for-service-start

Conversation

@vasayxtx

Copy link
Copy Markdown
Member

StartContext previously returned as soon as Unit.Stop completed, leaving the Start goroutine running in the background. The new Opts.StopTimeout, when > 0, makes StartContext block up to the configured duration for Start to exit, logging a warning on timeout. Zero preserves the prior non-waiting behavior.

StartContext previously returned as soon as Unit.Stop completed, leaving the Start goroutine running in the background. The new Opts.StopTimeout, when > 0, makes StartContext block up to the configured duration for Start to exit, logging a warning on timeout. Zero preserves the prior non-waiting behavior.
@vasayxtx vasayxtx force-pushed the stop-timeout-for-service-start branch from 312a473 to ca7c708 Compare May 13, 2026 13:39
@vasayxtx vasayxtx merged commit 2ba2fd4 into acronis:master May 13, 2026
5 checks passed
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 participants