commit:     ff422337a888f3b2e2bd9a648e18b400abc44733
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 10 05:24:40 2018 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Tue Jul 10 05:24:40 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff422337

net-dns/dnscrypt-proxy: adjust systemd service

Disable socket file by default, as
described in pkg_postinst message.
Users who want to use socket activation will have to
set listen_addresses to an empty set (i.e. [] )
and enable dnscrypt-proxy.socket explicitly.

Package-Manager: Portage-2.3.41, Repoman-2.3.9

 net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service 
b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service
index ed02955621b..a0c7a1408c8 100644
--- a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service
+++ b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service
@@ -7,12 +7,11 @@ Documentation=https://github.com/jedisct1/dnscrypt-proxy/wiki
 ## If you enable this, the `listen_addresses` list in the main configuration 
file can be empty.
 ## Or, at least, the addresses it contains should not overlap with the systemd 
socket addresses.
 
-# Requires=dnscrypt-proxy.socket
-
-After=network.target
-Wants=network.target
+#Requires=dnscrypt-proxy.socket
 Before=nss-lookup.target
-Wants=nss-lookup.target
+After=network.target
+Wants=network.target nss-lookup.target
+
 
 [Service]
 ExecStart=/usr/bin/dnscrypt-proxy --config 
/etc/dnscrypt-proxy/dnscrypt-proxy.toml
@@ -35,5 +34,5 @@ CapabilityBoundingSet=CAP_NET_BIND_SERVICE
 AmbientCapabilities=CAP_NET_BIND_SERVICE
 
 [Install]
-Also=dnscrypt-proxy.socket
+#Also=dnscrypt-proxy.socket
 WantedBy=multi-user.target

Reply via email to