mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-07 18:24:53 -04:00
Limit the number of restarts with systemd
This commit is contained in:
parent
8653b70c32
commit
466269fd10
2
dist/init/linux-systemd/caddy.service
vendored
2
dist/init/linux-systemd/caddy.service
vendored
@ -6,6 +6,8 @@ Wants=network-online.target systemd-networkd-wait-online.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
StartLimitInterval=86400
|
||||||
|
StartLimitBurst=5
|
||||||
|
|
||||||
; User and group the process will run as.
|
; User and group the process will run as.
|
||||||
User=www-data
|
User=www-data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user