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:
Yuqian Ma 2019-11-16 03:59:03 +08:00 committed by Matt Holt
parent 832df649c1
commit 12107f035c

View File

@ -4,14 +4,14 @@ Documentation=https://caddyserver.com/docs
After=network-online.target After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service 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 ; Do not allow the process to be restarted in a tight loop. If the
; process fails to start, something critical needs to be fixed. ; process fails to start, something critical needs to be fixed.
StartLimitIntervalSec=14400 StartLimitIntervalSec=14400
StartLimitBurst=10 StartLimitBurst=10
[Service]
Restart=on-abnormal
; User and group the process will run as. ; User and group the process will run as.
User=www-data User=www-data
Group=www-data Group=www-data