Skip to content

Systemd timer unit for scheduled run of geoipupdate #122

Description

@gdsotirov

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions