mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-25 09:40:13 +08:00
dist: update caddy.service on Ubuntu 18 (#2866)
move `StartLimitIntervalSec` and `StartLimitBurst` from [Service] to [Unit] ref: https://lists.freedesktop.org/archives/systemd-devel/2017-July/039255.html
This commit is contained in:
parent
832df649c1
commit
12107f035c
6
dist/init/linux-systemd/caddy.service
vendored
6
dist/init/linux-systemd/caddy.service
vendored
|
@ -4,14 +4,14 @@ Documentation=https://caddyserver.com/docs
|
|||
After=network-online.target
|
||||
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
|
||||
|
||||
[Service]
|
||||
Restart=on-abnormal
|
||||
|
||||
; User and group the process will run as.
|
||||
User=www-data
|
||||
Group=www-data
|
||||
|
|
Loading…
Reference in New Issue
Block a user