I'd like to suggest adding a systemd timer unit for scheduled running of geoipupdate command. The service unit could be as simple as:
[Unit]
Description=GeoIP databases update service
Wants=geoipupdate.timer
[Service]
Type=oneshot
ExecStart=geoipupdate
[Install]
WantedBy=multi-user.target
And the timer unit itself could be:
[Unit]
Description=GeoIP databases update timer
Requires=geoipupdate.service
[Timer]
Unit=geoipupdate.service
# Monthly at 00:00 on the first day of month
OnCalendar=*-*-01 00:00:00
[Install]
WantedBy=timers.target
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.
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.