Skip to content

Instantly share code, notes, and snippets.

@smac89
Last active May 30, 2020 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smac89/3fec52bdd2f29312b601a916bff9024e to your computer and use it in GitHub Desktop.
Save smac89/3fec52bdd2f29312b601a916bff9024e to your computer and use it in GitHub Desktop.
Create systemd timer from simple command

To create the timer described here

systemd-run --on-calendar='*-*-01 12:00:00' --unit='unbound-root-hints' \
--remain-after-exit --description='Update root hints for unbound' --property='Type=exec' \
--property='After=network.target' --timer-property='Persistent=true' \
--timer-property='RandomizedDelaySec=2s' --timer-property='AccuracySec=1us' \
/usr/bin/curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment