27 lines
699 B
SYSTEMD
27 lines
699 B
SYSTEMD
[Unit]
|
|
Description=DNSCrypt-proxy client
|
|
Documentation=https://github.com/jedisct1/dnscrypt-proxy/wiki
|
|
Requires=dnscrypt-proxy.socket
|
|
After=network-online.target
|
|
Before=nss-lookup.target
|
|
Wants=nss-lookup.target
|
|
|
|
[Service]
|
|
NonBlocking=true
|
|
ExecStart=/usr/bin/dnscrypt-proxy --config /etc/dnscrypt-proxy/dnscrypt-proxy.toml
|
|
ProtectHome=yes
|
|
ProtectControlGroups=yes
|
|
ProtectKernelModules=yes
|
|
|
|
# Run dnscrypt-proxy as unprivileged user with
|
|
# temporary assigned UID/GID. See man:systemd.exec
|
|
# for more info. Requires systemd 232+.
|
|
DynamicUser=yes
|
|
CacheDirectory=dnscrypt-proxy
|
|
LogsDirectory=dnscrypt-proxy
|
|
RuntimeDirectory=dnscrypt-proxy
|
|
|
|
[Install]
|
|
Also=dnscrypt-proxy.socket
|
|
WantedBy=multi-user.target
|