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

Switch systemd units to use Type=exec instead of Type=oneshot #7350

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

legoktm
Copy link
Member

@legoktm legoktm commented Nov 22, 2024

Status

Ready for review

Description of Changes

oneshot is designed to be used with RemainAfterExit, but we don't need that nor use it. After reviewing
https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html, exec appears to be the correct type since we want the service to be running once the binary has started, not once it's finished.

Practically this shouldn't make a big difference except that systemctl start <name> won't wait for the entire command to complete.

Fixes #7349.

Testing

How should the reviewer test this PR?

  • staging CI passes
  • visual review

Deployment

Any special considerations for deployment? n/a

Checklist

`oneshot` is designed to be used with RemainAfterExit, but we don't need
that nor use it. After reviewing
<https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html>,
`exec` appears to be the correct type since we want the service to be
running once the binary has started, not once it's finished.

Practically this shouldn't make a big difference except that `systemctl
start <name>` won't wait for the entire command to complete.

Fixes #7349.
@legoktm legoktm requested a review from a team as a code owner November 22, 2024 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready For Review
Development

Successfully merging this pull request may close these issues.

Our systemd services are probably using Type=oneshot wrong
1 participant