diff --git a/dist/init/linux-systemd/caddy.service b/dist/init/linux-systemd/caddy.service index 292970509..55251fb8b 100644 --- a/dist/init/linux-systemd/caddy.service +++ b/dist/init/linux-systemd/caddy.service @@ -7,6 +7,11 @@ 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 + ; User and group the process will run as. User=www-data Group=www-data