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:
parent
218e64314d
commit
0601de7217
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue