Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

systemd service file and timer  #685

@aboe76

Description

@aboe76

I have created a simple systemd service file and timer to update the blacklist for unbound, maybe it is usefull:

unbound-updateblacklist.service

[Unit]
Description=Update blacklist for unbound
After=network.target

[Service]
Type=oneshot
Group=unbound
ExecStart=/usr/bin/wget https://raw.githubusercontent.com/notracking/hosts-blocklists/master/unbound/unbound.blacklist.conf -O /etc/unbound/local.d/unbound.blacklist.conf
ExecStartPost=/usr/bin/systemctl try-restart unbound.service
SuccessExitStatus=1

unbound-updateblacklist.timer

[Unit]
Description=Run updateblacklist weekly

[Timer]
OnCalendar=weekly
Persistent=true

[Install]
WantedBy=timers.target

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions