2018-01-24 14:44:32 +01:00
|
|
|
[Unit]
|
2018-03-26 20:48:22 +02:00
|
|
|
Description=DNSCrypt-proxy client
|
|
|
|
Documentation=https://github.com/jedisct1/dnscrypt-proxy/wiki
|
2018-01-24 14:44:32 +01:00
|
|
|
Requires=dnscrypt-proxy.socket
|
|
|
|
After=network.target
|
|
|
|
Before=nss-lookup.target
|
2018-02-02 15:51:38 +01:00
|
|
|
Wants=nss-lookup.target
|
2018-01-24 14:44:32 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
NonBlocking=true
|
2018-03-26 20:48:22 +02:00
|
|
|
ExecStart=/usr/bin/dnscrypt-proxy --config /etc/dnscrypt-proxy/dnscrypt-proxy.toml
|
|
|
|
ProtectHome=yes
|
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectKernelModules=yes
|
2018-03-24 19:06:40 +01:00
|
|
|
|
|
|
|
# Run dnscrypt-proxy as unprivileged user with
|
|
|
|
# temporary assigned UID/GID. See man:systemd.exec
|
|
|
|
# for more info. Requires systemd 232+.
|
2018-03-26 20:48:22 +02:00
|
|
|
DynamicUser=yes
|
|
|
|
CacheDirectory=dnscrypt-proxy
|
|
|
|
LogsDirectory=dnscrypt-proxy
|
|
|
|
RuntimeDirectory=dnscrypt-proxy
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
Also=dnscrypt-proxy.socket
|
|
|
|
WantedBy=multi-user.target
|