mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-03-30 03:10:24 +00:00
Merge pull request #171 from m13253/m13253/restart-backoff
When systemd service fail to start, use an exponential backoff delay to restart it
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -8,7 +8,10 @@ AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
ExecStart=/usr/local/bin/doh-server -conf /etc/dns-over-https/doh-server.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