summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2018-07-09 22:24:40 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2018-07-09 22:24:40 -0700
commitff422337a888f3b2e2bd9a648e18b400abc44733 (patch)
tree602907f44ff0634ca4036724af2095899606f259 /net-dns/dnscrypt-proxy
parentnet-dns/dnscrypt-proxy: version bump to 2.0.16 (diff)
downloadgentoo-ff422337a888f3b2e2bd9a648e18b400abc44733.tar.gz
gentoo-ff422337a888f3b2e2bd9a648e18b400abc44733.tar.bz2
gentoo-ff422337a888f3b2e2bd9a648e18b400abc44733.zip
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
Diffstat (limited to 'net-dns/dnscrypt-proxy')
-rw-r--r--net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service11
1 files 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 ed02955621ba..a0c7a1408c85 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