
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.
12 lines
235 B
Desktop File
12 lines
235 B
Desktop File
[Unit]
|
|
Description=Dynamic DNS Update Client
|
|
Wants=network-online.target
|
|
After=network-online.target nss-lookup.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
PIDFile=/run/ddclient.pid
|
|
ExecStart=/usr/bin/ddclient
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|