Love systemd timers
- Infrastructure
- Developer Tools
- Open Source
- Programming
The post is a practical pitch for replacing cron with systemd timers on Linux. It walks through what a timer and its paired service file look like, then argues that timers beat cron because they share the same execution model as the rest of the system, can be listed and inspected centrally, log through journald, can catch up after missed runs, and support features like randomized delays and direct manual triggering via the underlying service. For readers who have only ever used cron, the key distinction is that a timer is just one trigger for a normal systemd unit, so the scheduled job plugs into the same process supervision, logging, dependency handling, and failure reporting as any other service.
If you run Linux systems that already use systemd, timers are worth standardizing on for anything you may need to inspect, retry, stagger, or debug. Keep cron for the tiny cases if you want, but do not assume the migration case is about prettier syntax. It is mostly about observability, integration, and operational control.
-
blog.tjll.net
- Discuss on HN