Creating a systemd service + timer for daily update #665
gombosg
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thought it might be useful to share this.
This updates the
hosts.denyfile daily. This is safe to do if you don't use that file for any other purpose.Creating a service
Add something like this (copy the
ExecStartcode form the relevant updater script):Save and test the service:
Creating a timer
Add this, it triggers the service automatically as long as the timer and the service have the same name.
Then enable:
That's it! Enjoy!
Additional Docs
Beta Was this translation helpful? Give feedback.
All reactions