19 lines
781 B
SYSTEMD
19 lines
781 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=Monthly refresh of the Thermograph IP-geolocation database
|
||
|
|
|
||
|
|
[Timer]
|
||
|
|
# Both candidate databases publish monthly. Weekly rather than monthly on
|
||
|
|
# purpose: the script exits 0 without touching anything when the file is already
|
||
|
|
# current, so the extra runs cost one HEAD request, and they mean a missed or
|
||
|
|
# failed monthly run self-heals within a week instead of leaving the data a
|
||
|
|
# month stale. (MaxMind additionally *requires* deleting a superseded copy
|
||
|
|
# within 30 days, which a strictly-monthly timer would sit right on the edge of.)
|
||
|
|
OnCalendar=Mon 04:17 UTC
|
||
|
|
# Don't have every host in the fleet hit the mirror at the same second.
|
||
|
|
RandomizedDelaySec=2h
|
||
|
|
# Catch up after a reboot that spanned the scheduled time.
|
||
|
|
Persistent=true
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=timers.target
|