1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2025-01-03 01:09:32 +01:00

Add optional hardening to systemd service (#259)

This commit is contained in:
FedericoYundt 2018-03-24 18:06:40 +00:00 committed by Frank Denis
parent f2ab65aab7
commit bdc32cee90

View File

@ -13,6 +13,15 @@ WantedBy=multi-user.target
[Service]
Type=simple
NonBlocking=true
ProtectHome=true
# Change this
ExecStart=/opt/dnscrypt-proxy/dnscrypt-proxy
# 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