systemd and journalctl · Unit files and timers
Write a timer
Run a service every day at 03:00, and catch up after downtime. Pair it with a myjob.service.
[Unit]
Description=Run myjob daily
[Timer]
OnCalendar=*-*-* 03:00:00
Persistent=true
[Install]
WantedBy=timers.target
Official systemd and journalctl documentation
More unit files and timers commands
- Write a service unit
- Reload unit files
- Override a unit safely
- Show a unit's effective definition
- List timers
- Check a unit file for errors
All unit files and timers commands · systemd and journalctl cheatsheet