mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-10-23 02:12:40 +00:00
When systemd service fail to start, use an exponential backoff delay to restart it
This solves an issue that on (at least) Fedora and if NetworkManager starts too slow, systemd may stop trying to start it.
This commit is contained in:
1 parent
f13dea391f
commit
03da3a801f
2 files changed
+8
-2
No files matched your search
@@ -10,7 +10,10 @@ AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
ExecStart=/usr/local/bin/doh-client -conf /etc/dns-over-https/doh-client.conf
|
||||
LimitNOFILE=1048576
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
RestartSec=1s
|
||||
RestartMaxDelaySec=76s
|
||||
RestartSteps=9
|
||||
StartLimitIntervalSec=0
|
||||
Type=simple
|
||||
DynamicUser=yes
|
||||
|
||||
|
||||
Reference in new issue
Block a user