---
title: "Cron vs systemd timers: which to use"
url: "https://cronmissed.com/learn/cron-vs-systemd-timers.md"
canonical_url: "https://cronmissed.com/learn/cron-vs-systemd-timers"
last_updated: "2026-10-22"
type: "conceptual"
summary: "Compare cron and systemd timers: syntax, logging, catching up after downtime, accuracy and resource control, and how to monitor each."
related: ["https://cronmissed.com/learn.md", "https://cronmissed.com/guides/systemd-timers.md", "https://cronmissed.com/guides/linux-crontab.md", "https://cronmissed.com/tools/cron-generator.md", "https://cronmissed.com/learn/cron-time-zones-and-dst.md"]
---

# Cron vs systemd timers: which to use

> **For AI agents:** the complete index of CronMissed pages is [llms.txt](https://cronmissed.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Compare cron and systemd timers: syntax, logging, catching up after downtime, accuracy and resource control, and how to monitor each.

Use cron when you want one line and a portable file; use a systemd timer when you want logs in the journal, catch-up after downtime, resource limits and dependencies. Both can be monitored the same way: with a ping from the job.

## How do they compare?

| Question | cron | systemd timer |
| --- | --- | --- |
| Where is the schedule? | One crontab line | A .timer unit and a .service unit |
| Schedule syntax | Five fields; names for months and days | OnCalendar expressions with seconds, or monotonic timers |
| Missed run while the machine was off | Skipped | Caught up with Persistent=true on OnCalendar timers |
| Accuracy | To the minute | Within AccuracySec, one minute by default |
| Random spread of start times | Not built in | RandomizedDelaySec |
| Output and logs | Mail or your own redirect | The journal, per unit |
| Failure state | None kept | The unit shows failed with its exit status |
| Environment | Minimal: SHELL, LOGNAME, HOME | Clean; set Environment= or EnvironmentFile= |

## When does each win?

- Cron: quick jobs on any Unix machine, portable crontabs, hosts where you do not control systemd.
- systemd timers: jobs that must catch up after downtime, services that need sandboxing or limits, and anywhere you want `systemctl status` to tell you the last result.

## How do I monitor each?

For cron, append a curl to the line, as in the [crontab guide](https://cronmissed.com/guides/linux-crontab.md). For a timer, use ExecStartPre and ExecStopPost in the service so that the start and the exit status are reported, as in the [systemd guide](https://cronmissed.com/guides/systemd-timers.md). A cron check can follow either one, because the check cares about when pings arrive, not about the scheduler behind them.

## Questions

### Can I convert a crontab line to OnCalendar?

Mostly. The [dialect converter](https://cronmissed.com/tools/cron-generator.md) writes the OnCalendar form of a cron schedule and flags anything that does not translate.

### Does a timer replace the need for monitoring?

It improves the evidence after the fact. It does not tell you when a timer is disabled, the machine is off, or the unit was never started. A heartbeat does.

## Sources

- [systemd.timer manual page](https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html), read 22 October 2026
- [crontab(5) manual page](https://man7.org/linux/man-pages/man5/crontab.5.html), read 22 October 2026

## Related pages

- [systemd timers](https://cronmissed.com/guides/systemd-timers.md)
- [Linux crontab](https://cronmissed.com/guides/linux-crontab.md)
- [/tools/cron-generator](https://cronmissed.com/tools/cron-generator.md)
- [Cron time zones and daylight saving](https://cronmissed.com/learn/cron-time-zones-and-dst.md)

## Related

- [Cron monitoring explained: concepts and fixes](https://cronmissed.com/learn.md)
- [Monitor systemd timers with a ping](https://cronmissed.com/guides/systemd-timers.md)
- [Monitor Linux crontab jobs with curl](https://cronmissed.com/guides/linux-crontab.md)
- [Crontab generator and cron dialect converter](https://cronmissed.com/tools/cron-generator.md)
- [Cron time zones and daylight saving time](https://cronmissed.com/learn/cron-time-zones-and-dst.md)
