New to systemd here - essentially I have 3 different scripts: activate.sh, toggle.sh, and deactivate.sh. I want to use a systemd service and timer in order to do the following:
- When the service first starts, run
activate.shonce - Using the timer, I want to continuously run
toggle.shuntil... - The service is stopped, in that case run
deactivate.sh
I've tried experimenting with variations of ExecStart, ExecStartPre, ExecStop, RemainAfterExit, etc. but to no avail. Can someone point me in the right direction?