mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-29 04:10:16 +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
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user