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 BindsTo=flux.service instead of Requires=flux.service #59

Closed
grondo opened this issue Apr 7, 2023 · 0 comments · Fixed by #61
Closed

systemd: use BindsTo=flux.service instead of Requires=flux.service #59

grondo opened this issue Apr 7, 2023 · 0 comments · Fixed by #61

Comments

@grondo
Copy link
Contributor

grondo commented Apr 7, 2023

As noted in flux-framework/flux-core#5072 and flux-framework/flux-accounting#337, we found that Requires=flux.service in systemd unit files of flux "service" scripts is causing flux to restart unexpectedly when it should stay shut down.

jameshcorbett added a commit to jameshcorbett/flux-coral2 that referenced this issue Apr 14, 2023
Problem: the coral2-dws systemd service 'requires' flux
which means (in combination with 'Restart=always') that
the flux service cannot be shut down without first
shutting down the coral2-dws service. That is obnoxious.

Solution: change 'requires' to 'bindsto' which is
a looser requirement.

Fixes flux-framework#59.
jameshcorbett added a commit to jameshcorbett/flux-coral2 that referenced this issue Apr 14, 2023
Problem: the coral2-dws systemd service 'requires' flux
which means (in combination with 'Restart=always') that
the flux service cannot be shut down without first
shutting down the coral2-dws service. That is obnoxious.

Solution: change 'requires' to 'bindsto' which is
a looser requirement.

Fixes flux-framework#59.
@mergify mergify bot closed this as completed in #61 Apr 14, 2023
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 a pull request may close this issue.

1 participant