From 466269fd10e2e9a2fb70ef80609dd379a44fbd4b Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 12 Dec 2016 21:58:35 -0700 Subject: [PATCH] Limit the number of restarts with systemd --- dist/init/linux-systemd/caddy.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dist/init/linux-systemd/caddy.service b/dist/init/linux-systemd/caddy.service index d9786e880..3bc368b91 100644 --- a/dist/init/linux-systemd/caddy.service +++ b/dist/init/linux-systemd/caddy.service @@ -6,6 +6,8 @@ Wants=network-online.target systemd-networkd-wait-online.service [Service] Restart=on-failure +StartLimitInterval=86400 +StartLimitBurst=5 ; User and group the process will run as. User=www-data