| 1 | [Unit] |
| 2 | Description=DNSCrypt client proxy |
| 3 | Documentation=https://github.com/DNSCrypt/dnscrypt-proxy/wiki |
| 4 | Requires=dnscrypt-proxy.socket |
| 5 | After=network.target |
| 6 | Before=nss-lookup.target |
| 7 | Wants=nss-lookup.target |
| 8 | |
| 9 | [Install] |
| 10 | Also=dnscrypt-proxy.socket |
| 11 | WantedBy=multi-user.target |
| 12 | |
| 13 | [Service] |
| 14 | NonBlocking=true |
| 15 | ExecStart=/usr/sbin/dnscrypt-proxy -config /etc/dnscrypt-proxy/dnscrypt-proxy.toml |
| 16 | ProtectHome=true |
| 17 | ProtectKernelModules=true |
| 18 | ProtectKernelTunables=true |
| 19 | ProtectControlGroups=true |
| 20 | MemoryDenyWriteExecute=true |
| 21 | |
| 22 | User=_dnscrypt-proxy |
| 23 | CacheDirectory=dnscrypt-proxy |
| 24 | LogsDirectory=dnscrypt-proxy |
| 25 | RuntimeDirectory=dnscrypt-proxy |