Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

systemd Timers · Scheduling

Direct answer

systemd timers in scheduling pair a .timer unit with a .service, using OnCalendar=*-*-* 03:00:00, RandomizedDelaySec and Persistent=true, listed with systemctl list-timers.

When to use this

Use this when scheduling with systemd on Linux.

First 30 seconds

1. systemd timers: OnCalendar, OnBootSec, Persistent=true.

2. Logs in journal.

3. RandomizedDelaySec.

4. Unit dependencies.

5. Validate calendar expressions.

Operational verification

timer → service → journal

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
systemd timer scheduling
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformsystemd timer scheduling · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when scheduling with systemd on Linux.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

The negative fixture should deliberately exercise risks such as DST/timezone drift, duplicate firing, missed triggers, scheduler downtime, dependency race, long-running overlap and successful trigger without successful target work, choosing the cases most relevant to OnCalendar/monotonic timers, Persistent, RandomizedDelaySec, accuracy, associated service unit and journal/state proving actual dispatch.

Step 2 Common mistakes Narrow the fault
  • Forgetting Persistent=true.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • OnCalendar sets the schedule.
  • Persistent=true catches missed runs.
  • RandomizedDelaySec spreads load.
Key checks
  • systemctl list-timers --all — timers
  • systemd-analyze calendar 'Mon..Fri 02:00' — validate OnCalendar
  • journalctl -u <svc> — logs
ReferenceImportant terms & boundaries1 section · depth on demand

In depth

systemd timers run services on a schedule on Linux. Compared with cron they offer logging in the journal, dependency handling, randomised delays, catch-up of runs missed while the machine was off (Persistent=true) and resource controls.

# /etc/systemd/system/config-backup.service
[Service]
Type=oneshot
ExecStart=/opt/net/backup.sh
User=netbackup

# /etc/systemd/system/config-backup.timer
[Timer]
OnCalendar=*-*-* 02:30:00
RandomizedDelaySec=10m
Persistent=true
[Install]
WantedBy=timers.target
systemctl enable --now config-backup.timer
systemctl list-timers config-backup.timer
journalctl -u config-backup.service --since today
systemd-analyze calendar '*-*-* 02:30:00'
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docsystemd timer scheduling current

Authoritative/upstream documentation reviewed for bounded claims in Scheduling > systemd Timers. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html · confidence 94%
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

For OnCalendar/monotonic timers, Persistent, RandomizedDelaySec, accuracy, associated service unit and journal/state proving actual dispatch, prefer typed fields and stable IDs over human presentation text.

Confirmation

Confirm action

Continue?