From c0a1431f7815355f08a5f5827d5fe114246c17e3 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 14 May 2024 20:55:33 -0400 Subject: [PATCH] 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`). --- sample-etc_systemd.service | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sample-etc_systemd.service b/sample-etc_systemd.service index cd70712..7ef0675 100644 --- a/sample-etc_systemd.service +++ b/sample-etc_systemd.service @@ -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