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

All unit files and timers commands · systemd and journalctl cheatsheet

Was this page helpful?