Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd: use Type=simple and no fork to avoid PIDFile race #154

Closed

Conversation

mdomsch
Copy link
Contributor

@mdomsch mdomsch commented Feb 24, 2022

No description provided.

This is a long-running process that once started by systemd should
stay running forever. In the event of a fatal error and unclean exit,
we want systemd to restart the program. We use on-abnormal because
there are valid nonzero exit codes (EX_USAGE, EX_OSERR, EX_CONFIG)
which the program can properly return indicating a configuration or
command line error, or inability to allocate memory early on. In these
events, restarting would be inappropriate, but on-failure would try
anyhow.
flowerysong pushed a commit to flowerysong/OpenARC that referenced this pull request Feb 6, 2024
use Type=simple and no fork to avoid PIDFile race

add Restart=on-abnormal

This is a long-running process that once started by systemd should
stay running forever. In the event of a fatal error and unclean exit,
we want systemd to restart the program. We use on-abnormal because
there are valid nonzero exit codes (EX_USAGE, EX_OSERR, EX_CONFIG)
which the program can properly return indicating a configuration or
command line error, or inability to allocate memory early on. In these
events, restarting would be inappropriate, but on-failure would try
anyhow.

trusteddomainproject/OpenARC#154
@mdomsch mdomsch closed this by deleting the head repository Dec 11, 2024
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.

1 participant