I have a program running via Systemd and I'm trying to figure out how to start/stop it at certain times. It's a persistent program (transmission).
Currently I have a crontab with the following lines:
0 8 * * * systemctl stop transmission-daemon 0 20 * * * systemctl start transmission-daemon
I'm struggling to translate this to a Systemd timer file.
Additionally, is it possible to have systemd (or cron) check if the service should be running or not based on the current time in the event of a reboot?
Thanks for your help, if this has been asked before please point me to specific examples of exactly this kind of thing. Most of what I can find is how to run a service in 15 minute intervals and similar.