-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Systemd timer unit for scheduled run of geoipupdate #122
Comments
For what it's worth, in Debian we have been shipping this for a couple of years now:
I believe I had it configured to check at Wed UTC, because MaxMind used to update (most of) its databases on Tuesday. I see now this has changed to Tuesday & Friday, so perhaps we're due for an update? If MaxMind would like to ship a timer file with what they consider sane defaults, I could always switch to it of course! |
https://support.maxmind.com/hc/en-us/articles/4408216129947-Download-and-Update-Databases currently says "Every Tuesday and Friday" for all databases except Anonymous IP, and "In the event we have an unexpected delay for any of our database updates such that an update will not be available by 11:59pm US Eastern on a release day". Based on that, I'm going to configure the Debian package to default to:
(This is the equivalent to Hopefully that strikes the right balance between using fresh data and not polling the MaxMind servers excessively. MaxMind folks, let me know if you'd like different defaults for the Debian package! |
Would it be possible to add a random delay to that? The primary issue we have with default timers for |
Yeah that sounds very sensible. I'll add that to the next upload. |
Wondering if this has been implemented yet or if its still in a dev branch? |
This is implemented as of 6.1.0-1, uploaded today. Note, for the casual reader, that this a Debian revision, i.e. what I (the Debian maintainer) have uploaded to Debian unstable. That statement does not mean that this change has been merged into this (upstream) repository, or, if it ever will. (In other words, this is a bit of offtopic for this issue tracker!) |
Thank you! |
I'd like to suggest adding a systemd timer unit for scheduled running of geoipupdate command. The service unit could be as simple as:
And the timer unit itself could be:
I found it strange that the distribution packages doesn't provide such timer unit, but I guess if it is added upstream it would benefit all.
The text was updated successfully, but these errors were encountered: