From 12107f035c5a807d31b6316f5087761531546f70 Mon Sep 17 00:00:00 2001 From: Yuqian Ma Date: Sat, 16 Nov 2019 03:59:03 +0800 Subject: [PATCH] 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 --- dist/init/linux-systemd/caddy.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/init/linux-systemd/caddy.service b/dist/init/linux-systemd/caddy.service index d636565e6..cab37fd49 100644 --- a/dist/init/linux-systemd/caddy.service +++ b/dist/init/linux-systemd/caddy.service @@ -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