service starts then dies over and over with systemd
My little sync service restarts every 12 seconds and I can't read the logs because they disappear. Debian 12, unit has Restart=always and RestartSec=12. journalctl -u sync shows sync.service: Succeeded. then sync.service: Service RestartSec=12s expired, scheduled restart job, restart counter is at 43 and Start request repeated too quickly. The app does a single sync and exits 0 on purpose. I think systemd is treating success as failure. How do I run a one-shot service on a timer instead?
4 replies