To avoid using /etc/default/kresd, provide the needed arguments directly
in the ExecStart= in the kresd@.service.
+++ /dev/null
-# Used for systemd activation
-KRESD_ARGS="--config=/etc/knot-resolver/kresd.conf"
-
-# Standalone daemon arguments
-DAEMON_ARGS="--addr=127.0.0.1#53 --addr=::1#53 $KRESD_ARGS"
[Service]
Type=notify
WorkingDirectory=/var/cache/knot-resolver
-EnvironmentFile=-/etc/default/kresd
-ExecStart=/usr/sbin/kresd $KRESD_ARGS
+ExecStart=/usr/sbin/kresd --config=/etc/knot-resolver/kresd.conf
User=knot-resolver
Restart=on-failure
Sockets=kresd.socket