summaryrefslogtreecommitdiff
path: root/deployment/doot-health.timer
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/doot-health.timer')
-rw-r--r--deployment/doot-health.timer14
1 files changed, 14 insertions, 0 deletions
diff --git a/deployment/doot-health.timer b/deployment/doot-health.timer
new file mode 100644
index 0000000..22b687f
--- /dev/null
+++ b/deployment/doot-health.timer
@@ -0,0 +1,14 @@
+[Unit]
+Description=Run the doot.terst.org health check every 5 minutes
+
+[Timer]
+# 2 minutes after boot: the failure this exists for first appeared at a reboot,
+# when sub-services could not exec and systemd gave up on them.
+OnBootSec=2min
+OnUnitActiveSec=5min
+# Spread the load off exact-minute boundaries.
+RandomizedDelaySec=30s
+Unit=doot-health.service
+
+[Install]
+WantedBy=timers.target