]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
systemd: drop WantedBy directive from kresd.service
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 9 Jan 2018 21:06:45 +0000 (16:06 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Wed, 10 Jan 2018 17:15:27 +0000 (12:15 -0500)
This directive is unnecessary in the .service file, and it also causes
a dependency cycle that systemd is obliged to break.

Since kresd is socket-activated, there is no need for the WantedBy
directive in the .service file itself.  As long as the .socket files
are installed, the service will run when it is used.

systemd/kresd.service

index fdf75746dbeb1495dc9dcce5dae92021704664db..2f8a77ce5c0b02f12f075085e9fa27a1a52df65f 100644 (file)
@@ -11,6 +11,3 @@ User=knot-resolver
 Restart=on-failure
 # CAP_NET_BIND_SERVICE capability is needed for manual service activation
 AmbientCapabilities=CAP_NET_BIND_SERVICE
-
-[Install]
-WantedBy=sockets.target