mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-22 12:43:58 +08:00
systemd: Prevent excessive restarts in tight loop
This commit is contained in:
parent
11eee95222
commit
16b296c97e
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]
|
||||
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=www-data
|
||||
Group=www-data
|
||||
|
|
Loading…
Reference in New Issue
Block a user