ddclient/ddclient.service
Christian Wittmer d983a6e87d Accepting request 942312 from home:alarrosa:branches:network
- Modify the systemd service file so ddclient is run After
  network-online.target instead of just network.target, since
  running ddclient without being online is pointless.
- Added a Wants statement for the same systemd targets as in After

OBS-URL: https://build.opensuse.org/request/show/942312
OBS-URL: https://build.opensuse.org/package/show/network/ddclient?expand=0&rev=61
2022-01-15 18:09:47 +00:00

30 lines
798 B
Desktop File

[Unit]
Description=A Perl Client Used To Update Dynamic DNS
After=network-online.target nss-lookup.target
Wants=network-online.target nss-lookup.target
[Service]
# added automatically, for details please see
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
ProtectSystem=full
ProtectHome=true
PrivateDevices=true
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictRealtime=true
# end of automatic additions
User=ddclient
Group=ddclient
Type=forking
PIDFile=/run/ddclient/ddclient.pid
EnvironmentFile=-/etc/sysconfig/ddclient
ExecStartPre=/bin/touch /var/cache/ddclient/ddclient.cache
ExecStart=/usr/sbin/ddclient $DDCLIENT_OPTIONS
[Install]
WantedBy=multi-user.target