sample-etc_systemd.service: order after nss-lookup.target
This improves the chances that the local DNS resolver (e.g. dnsmasq, systemd-resolved, Unbound) is up before the service runs and avoids DNS related failures. Pull in network-online.target via Wants= to comply with its description in the systemd.special(7) man page and remove the redundant "After=network.target" since network-online.target already orders itself after network.target.
This commit is contained in:
parent
a1e68a5b21
commit
6312030c57
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Dynamic DNS Update Client
|
Description=Dynamic DNS Update Client
|
||||||
After=network.target network-online.target
|
Wants=network-online.target
|
||||||
|
After=network-online.target nss-lookup.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
|
Loading…
Reference in a new issue