Skip to content

Add "Wants" dependency to systemd service - #508

Open
cvengler wants to merge 1 commit into
NLnetLabs:masterfrom
cvengler:wants-network-online
Open

Add "Wants" dependency to systemd service#508
cvengler wants to merge 1 commit into
NLnetLabs:masterfrom
cvengler:wants-network-online

Conversation

@cvengler

@cvengler cvengler commented Aug 9, 2026

Copy link
Copy Markdown

Having an actual "Wants" dependency is generally considered good hygiene in systemd services, as a dependency with "After" only ensures that the service gets started after "network-online.target", but it does not necessarily ensure that "network-online.target" is started at all.

Practically speaking, it should not matter a lot, because there will most likely be another dependency on the systemd that makes use of "network-online.target", but defining it explicitly is still good practice in my opinion, as well as the opinion of various downstream distributions.

Having an actual "Wants" dependency is generally considered good hygiene
in systemd services, as a dependency with "After" only ensures that the
service gets started after "network-online.target", but it does not
necessarily ensure that "network-online.target" is started at all.

Practically speaking, it should not matter a lot, because there will
most likely be another dependency on the systemd that makes use of
"network-online.target", but defining it explicitly is still good
practice in my opinion, as well as the opinion of various downstream
distributions.
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