systemd: Use Type=exec instead of fork

When forking, ddclient redirects STDERR and STDOUT to `/dev/null`,
which prevents useful information from appearing in the systemd
journal (`journalctl`).
This commit is contained in:
Richard Hansen 2024-05-14 20:55:33 -04:00
parent 48daf8a5d7
commit c0a1431f78

View file

@ -4,9 +4,8 @@ Wants=network-online.target
After=network-online.target nss-lookup.target
[Service]
Type=forking
PIDFile=/run/ddclient.pid
ExecStart=/usr/bin/ddclient
Type=exec
ExecStart=/usr/bin/ddclient --daemon 5m --foreground
[Install]
WantedBy=multi-user.target