Skip to content

Update systemd service to pull nss-lookup.target in.#77

Merged
jedisct1 merged 1 commit intoDNSCrypt:masterfrom
Zirkelite:systemd-service-update
Feb 2, 2018
Merged

Update systemd service to pull nss-lookup.target in.#77
jedisct1 merged 1 commit intoDNSCrypt:masterfrom
Zirkelite:systemd-service-update

Conversation

@Zirkelite
Copy link
Contributor

According to systemd.special(7), nss-lookup.target is a Special Passive System Unit. This means that services depending on its functionality should order themselves after the target with an After= type dependency, but should not have a Wants= dependency for them. Therefore, nss-lookup.target should be pulled in by the providing services instead, or the consumer services will never be able to order themselves after the providing services since nss-lookup.target would not be pulled in at any point in the boot process. dnscrypt-proxy.service provides name lookup functionality, and has a Before= dependency on nss-lookup.target. However, it should have a Wants= dependency on it as well in order to indicate readiness of name lookup functionality.

According to systemd.special(7), nss-lookup.target is a Special Passive System Unit. This means that services depending on its functionality should order themselves after the target with an After= type dependency, but should not have a Wants= dependency for them. Therefore, nss-lookup.target should be pulled in by the providing services instead, or the consumer services will never be able to order themselves after the providing services since nss-lookup.target would not be pulled in at any point in the boot process. dnscrypt-proxy.service provides name lookup functionality, and has a Before= dependency on nss-lookup.target. However, it should have a Wants= dependency on it as well in order to indicate readiness of name lookup functionality.
@jedisct1
Copy link
Member

jedisct1 commented Feb 2, 2018

Thanks! Your systemd expertise is appreciated!

Merged.

@jedisct1 jedisct1 merged commit 1fcb0ac into DNSCrypt:master Feb 2, 2018
@Zirkelite Zirkelite deleted the systemd-service-update branch February 2, 2018 15:11
@DNSCrypt DNSCrypt locked and limited conversation to collaborators Mar 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments