-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
pid1: specifying DefaultDependencies=no in service unit causes default After= option lost in target unit #7113
Comments
I may misunderstand your point. But systemd.target(5) states that
No no, I was completely wrong. And you may be right. See, https://github.com/systemd/systemd/blob/master/src/core/unit.c#L1194-L1198. I do not know this implementation is right or not. But at least we need to revise systemd.target(5). |
From your link, I saw this behavior is since 21256a2. The commit message is:
But I failed to see the real reason to do so. |
After reconsideration, now I think this is a documentation issue. The meaning of |
I see. Thank you for the explanation and the fix! |
Since the pull request is not merged yet, it seems that I should reopen this issue. Sorry. |
Submission type
systemd version the issue has been seen with
v235
Used distribution
Arch Linux
In case of bug report: Expected behaviour you didn't see
In case of bug report: Unexpected behaviour you saw
In case of bug report: Steps to reproduce the problem
Create 2 units:
some.service
andsome.target
:According to
systemd.target(5)
, the defaultAfter=
dependency won't be applied ifDefaultDependencies=no
is specified in the target unit. However, in this case,DefaultDependencies=no
is specified in the service unit. There is no description about this behavior insystemd.service(5)
.The text was updated successfully, but these errors were encountered: