net-dns/dnscrypt-proxy: adjust systemd service
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Tue, 10 Jul 2018 05:24:40 +0000 (22:24 -0700)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Tue, 10 Jul 2018 05:24:40 +0000 (22:24 -0700)
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

index ed02955621baddc7c0a7735afd4ea21a5a5d30a1..a0c7a1408c85c7ef511055926581d0fe2126ca26 100644 (file)
@@ -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