mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-13 10:42:16 -04:00
systemd: Prevent excessive restarts in tight loop
This commit is contained in:
+5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user