ddclient/sample-etc_systemd.service
nl6720 6312030c57
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.
2023-04-10 19:51:27 +03:00

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