From: Daniel Kahn Gillmor Date: Tue, 9 Jan 2018 21:06:45 +0000 (-0500) Subject: systemd: drop WantedBy directive from kresd.service X-Git-Tag: v2.0.0~40^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2476e5ff22bd7e4e4971939fcfa884060340ef26;p=thirdparty%2Fknot-resolver.git systemd: drop WantedBy directive from kresd.service 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. --- diff --git a/systemd/kresd.service b/systemd/kresd.service index fdf75746d..2f8a77ce5 100644 --- a/systemd/kresd.service +++ b/systemd/kresd.service @@ -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