From b367f8da557244694a77df53010583c9513b03c6 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Tue, 27 Aug 2024 11:25:39 -0700 Subject: [PATCH] Restart the plausible service every day --- files/plausible.service | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/plausible.service b/files/plausible.service index b5eaf06..e8d72e0 100755 --- a/files/plausible.service +++ b/files/plausible.service @@ -13,6 +13,11 @@ ExecStartPre=/usr/bin/docker compose down ExecStart=/usr/bin/docker compose up ExecStop=/usr/bin/docker compose down +# NOTE: The Plausible service seems to go into a "502 Bad Gateway" state +# sometimes. Let's restart it every day, just to catch whatever that is. This +# will probably result in a few minutes of lost data, and that's okay! +RuntimeMaxSec=1d + ; Some security directives, adapted from Akkoma's service file, they seem like sensible defaults! ; Use private /tmp and /var/tmp folders inside a new file system namespace, which are discarded after the process stops. PrivateTmp=true