diff options
Diffstat (limited to 'nextdns.service')
-rw-r--r-- | nextdns.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nextdns.service b/nextdns.service new file mode 100644 index 000000000000..8c8f7400acfe --- /dev/null +++ b/nextdns.service @@ -0,0 +1,17 @@ +[Unit] +Description=NextDNS DNS53 to DoH proxy. +ConditionFileIsExecutable=/usr/bin/nextdns +After=network.target +Before=nss-lookup.target +Wants=nss-lookup.target + +[Service] +StartLimitInterval=5 +StartLimitBurst=10 +Environment=SERVICE_RUN_MODE=1 +ExecStart=/usr/bin/nextdns run +RestartSec=120 +LimitMEMLOCK=infinity + +[Install] +WantedBy=multi-user.target |