systemd: move Service directive to Socket for kresd-tls, kresd-control

The Service directives belong to the Socket section. Otherwise,
systemd fails to find the associated service and the socket can't start.
parent 38746c5b
......@@ -2,10 +2,10 @@
Description=Knot DNS Resolver control socket
Documentation=man:kresd(8)
Before=sockets.target
Service=kresd@%i.service
PartOf=kresd@%i.service
[Socket]
Service=kresd@%i.service
ListenStream=/run/knot-resolver/control@%i
FileDescriptorName=control
SocketMode=0660
......
......@@ -2,10 +2,10 @@
Description=Knot DNS Resolver TLS network listener
Documentation=man:kresd(8)
Before=sockets.target
Service=kresd@%i.service
PartOf=kresd@%i.service
[Socket]
Service=kresd@%i.service
ReusePort=true
FreeBind=true
FileDescriptorName=tls
......
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