Use OnCalendar for gluetun endpoint watch timer

OnUnitActiveSec alone left NEXT unset after enable; calendar every
five minutes schedules reliably after boot.
This commit is contained in:
tim 2026-07-22 11:19:01 -07:00
parent 218e64314d
commit 0601de7217

View file

@ -2,8 +2,10 @@
Description=Run gluetun endpoint watch every 5 minutes Description=Run gluetun endpoint watch every 5 minutes
[Timer] [Timer]
# Every 5 minutes wall-clock (more reliable than OnUnitActiveSec alone)
OnCalendar=*:0/5
# Also soon after boot
OnBootSec=2min OnBootSec=2min
OnUnitActiveSec=5min
AccuracySec=30s AccuracySec=30s
Persistent=true Persistent=true
Unit=gluetun-endpoint-watch.service Unit=gluetun-endpoint-watch.service