mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-23 17:16:40 +01:00
Limit the number of restarts with systemd
This commit is contained in:
parent
8653b70c32
commit
466269fd10
1 changed files with 2 additions and 0 deletions
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…
Reference in a new issue