Read service state, catch restart loops, and schedule tasks — without fighting systemd..