Restart the plausible service every day

This commit is contained in:
Emi Matchu 2024-08-27 11:25:39 -07:00
parent a68f82ec19
commit b367f8da55

View file

@ -13,6 +13,11 @@ ExecStartPre=/usr/bin/docker compose down
ExecStart=/usr/bin/docker compose up ExecStart=/usr/bin/docker compose up
ExecStop=/usr/bin/docker compose down 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! ; 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. ; Use private /tmp and /var/tmp folders inside a new file system namespace, which are discarded after the process stops.
PrivateTmp=true PrivateTmp=true