mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-06 22:40:31 -05: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]
|
||||
Restart=on-failure
|
||||
StartLimitInterval=86400
|
||||
StartLimitBurst=5
|
||||
|
||||
; User and group the process will run as.
|
||||
User=www-data
|
||||
|
|
Loading…
Reference in a new issue