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:
parent
48daf8a5d7
commit
c0a1431f78
1 changed files with 2 additions and 3 deletions
|
@ -4,9 +4,8 @@ Wants=network-online.target
|
||||||
After=network-online.target nss-lookup.target
|
After=network-online.target nss-lookup.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=exec
|
||||||
PIDFile=/run/ddclient.pid
|
ExecStart=/usr/bin/ddclient --daemon 5m --foreground
|
||||||
ExecStart=/usr/bin/ddclient
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue