-
Notifications
You must be signed in to change notification settings - Fork 156
Systemd timer unit for scheduled run of geoipupdate #122
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request