blob: 17e1ca576410ca22ad04b41dc213da812f1d0a54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
[Unit]
Description=NextDNS DNS53 to DoH proxy.
ConditionFileIsExecutable=/usr/bin/nextdns
After=network.target
Before=network-online.target nss-lookup.target
Wants=nss-lookup.target
[Service]
StartLimitInterval=5
StartLimitBurst=10
Environment=SERVICE_RUN_MODE=1
ExecStart=/usr/bin/nextdns run -control /run/nextdns/nextdns.sock
RuntimeDirectory=nextdns
RestartSec=120
LimitMEMLOCK=infinity
Type=simple
User=nextdns
UMask=0007
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target
|