]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
systemd: move Service directive to Socket for kresd-tls, kresd-control
authorTomas Krizek <tomas.krizek@nic.cz>
Wed, 31 Jan 2018 18:39:47 +0000 (19:39 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Thu, 1 Feb 2018 10:06:38 +0000 (11:06 +0100)
The Service directives belong to the Socket section. Otherwise,
systemd fails to find the associated service and the socket can't start.

systemd/kresd-control@.socket
systemd/kresd-tls@.socket

index c31a6d9c643a620da82713616e3242fac2fe4f53..902c9d74aecf6b9b0943279bd155f50f5a5b6b4f 100644 (file)
@@ -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
index 7f1123f5fd31033d3cf6f941b6506efd0395e6eb..533e07ba3f9e4a7344484907ca2386160eacc16e 100644 (file)
@@ -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