irdb-tick.timer 604 B

12345678910111213141516171819202122
  1. # IRDB scheduler tick — systemd timer
  2. #
  3. # Pairs with irdb-tick.service. Install both, then:
  4. # sudo systemctl daemon-reload
  5. # sudo systemctl enable --now irdb-tick.timer
  6. # systemctl list-timers irdb-tick.timer
  7. [Unit]
  8. Description=Periodically run irdb-tick.service
  9. [Timer]
  10. # Once a minute, slightly randomised to avoid thundering-herd on a
  11. # multi-host deployment. The api's job_locks table mediates between
  12. # replicas, so simultaneous ticks are correct but wasteful.
  13. OnBootSec=30s
  14. OnUnitActiveSec=60s
  15. RandomizedDelaySec=10s
  16. AccuracySec=5s
  17. Persistent=true
  18. [Install]
  19. WantedBy=timers.target