mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-09 08:35:17 -04: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]
|
[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…
x
Reference in New Issue
Block a user