Skip to content

Change unit type to notify with startup timeout and exit status config#19

Merged
fiorix merged 3 commits intofiorix:mainfrom
hodgesds:unit-type-notify
Mar 3, 2026
Merged

Change unit type to notify with startup timeout and exit status config#19
fiorix merged 3 commits intofiorix:mainfrom
hodgesds:unit-type-notify

Conversation

@hodgesds
Copy link
Collaborator

@hodgesds hodgesds commented Mar 2, 2026

Switch the sdme@.service template from Type=simple to Type=notify so systemd waits for the container's readiness notification before considering the unit started. Add TimeoutStartSec=2min to allow sufficient boot time, and RestartForceExitStatus=133 / SuccessExitStatus=133 so exit code 133 triggers a clean restart cycle. Update test_unit_template assertions accordingly.

@fiorix
Copy link
Owner

fiorix commented Mar 2, 2026

Update the docs with the defaults too?

Copy link
Owner

@fiorix fiorix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except for missing docs update

@fiorix
Copy link
Owner

fiorix commented Mar 2, 2026

Hm. Needs moar rebase.

Copy link
Owner

@fiorix fiorix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebase

hodgesds added 3 commits March 3, 2026 05:38
Switch the sdme@.service template from Type=simple to Type=notify so
systemd waits for the container's readiness notification before
considering the unit started. Add TimeoutStartSec=2min to allow
sufficient boot time, and RestartForceExitStatus=133 /
SuccessExitStatus=133 so exit code 133 triggers a clean restart
cycle. Update test_unit_template assertions accordingly.
Document the notify service type, startup timeout, and exit status
handling in the Systemd integration and Key Modules sections.
Document the notify service type, startup timeout, and exit code 133
handling in the DESCRIPTION and FILES sections of sdme(1).
@fiorix fiorix merged commit 8b67c82 into fiorix:main Mar 3, 2026
1 check 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.

2 participants