Move StartLimitIntervalSec=0 from [Service] to [Unit]

This solves the warning message:
> systemd[1]: /usr/lib/systemd/system/doh-client.service:16: Unknown key 'StartLimitIntervalSec' in section [Service], ignoring.
This commit is contained in:
Star Brilliant
2025-05-24 12:42:13 +00:00
parent 0263a32c22
commit 8bc06acc6e
2 changed files with 2 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ Documentation=https://github.com/m13253/dns-over-https
After=network.target
Before=nss-lookup.target
Wants=nss-lookup.target
StartLimitIntervalSec=0
[Service]
AmbientCapabilities=CAP_NET_BIND_SERVICE
@@ -13,7 +14,6 @@ Restart=always
RestartSec=1s
RestartMaxDelaySec=76s
RestartSteps=9
StartLimitIntervalSec=0
Type=simple
DynamicUser=yes

View File

@@ -2,6 +2,7 @@
Description=DNS-over-HTTPS Server
Documentation=https://github.com/m13253/dns-over-https
After=network.target
StartLimitIntervalSec=0
[Service]
AmbientCapabilities=CAP_NET_BIND_SERVICE
@@ -11,7 +12,6 @@ Restart=always
RestartSec=1s
RestartMaxDelaySec=76s
RestartSteps=9
StartLimitIntervalSec=0
Type=simple
DynamicUser=yes