Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Systemd unit files to restart service every two hours.
Description=Service that restarts my spread_goodness.service every two hours.
ExecStart=/usr/bin/systemctl try-restart spread_goodness.service
Description=2hour timer

This comment has been minimized.

Copy link

Spidersonic commented Apr 18, 2018

I'm currently trying to understand how timers work within systemd and this was very helpful and straight to the point. Thanks for sharing. ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.