mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-02 14:17:01 +01:00
systemd: Prevent excessive restarts in tight loop
This commit is contained in:
parent
11eee95222
commit
16b296c97e
1 changed files with 5 additions and 0 deletions
5
dist/init/linux-systemd/caddy.service
vendored
5
dist/init/linux-systemd/caddy.service
vendored
|
@ -7,6 +7,11 @@ Wants=network-online.target systemd-networkd-wait-online.service
|
||||||
[Service]
|
[Service]
|
||||||
Restart=on-abnormal
|
Restart=on-abnormal
|
||||||
|
|
||||||
|
; Do not allow the process to be restarted in a tight loop. If the
|
||||||
|
; process fails to start, something critical needs to be fixed.
|
||||||
|
StartLimitIntervalSec=14400
|
||||||
|
StartLimitBurst=10
|
||||||
|
|
||||||
; User and group the process will run as.
|
; User and group the process will run as.
|
||||||
User=www-data
|
User=www-data
|
||||||
Group=www-data
|
Group=www-data
|
||||||
|
|
Loading…
Reference in a new issue