Commit 24711da7 authored by Tomas Krizek's avatar Tomas Krizek

systemd: provide kresd arguments in ExecStart=

To avoid using /etc/default/kresd, provide the needed arguments directly
in the ExecStart= in the kresd@.service.
parent 1f9aa9a6
# 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"
......@@ -5,8 +5,7 @@ Documentation=man:kresd(8)
[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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment