From 0601de72171e02d5ce8c234dff0d0f31e0a472d8 Mon Sep 17 00:00:00 2001 From: tim Date: Wed, 22 Jul 2026 11:19:01 -0700 Subject: [PATCH] Use OnCalendar for gluetun endpoint watch timer OnUnitActiveSec alone left NEXT unset after enable; calendar every five minutes schedules reliably after boot. --- ansible/roles/stack/templates/gluetun-endpoint-watch.timer.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/roles/stack/templates/gluetun-endpoint-watch.timer.j2 b/ansible/roles/stack/templates/gluetun-endpoint-watch.timer.j2 index 9c97558..3186755 100644 --- a/ansible/roles/stack/templates/gluetun-endpoint-watch.timer.j2 +++ b/ansible/roles/stack/templates/gluetun-endpoint-watch.timer.j2 @@ -2,8 +2,10 @@ Description=Run gluetun endpoint watch every 5 minutes [Timer] +# Every 5 minutes wall-clock (more reliable than OnUnitActiveSec alone) +OnCalendar=*:0/5 +# Also soon after boot OnBootSec=2min -OnUnitActiveSec=5min AccuracySec=30s Persistent=true Unit=gluetun-endpoint-watch.service