TL;DR
Use a systemd timer when a job needs to survive a reboot (catch-up runs), when you want its logs sitting next to the service's own output in the journal, or when you need to stagger a fleet of jobs so they don't all fire at once. Use cron (crond) when the job is dead simple, you're maintaining an inherited crontab, or portability to non-systemd systems matters. On RHEL 10, Red Hat's own training material says systemd now handles most scheduling tasks by default, but cronie is still installed, still supported, and still on the RHCSA objectives list right next to timers.
systemctl list-timers --all
NEXT LEFT LAST PASSED UNIT ACTIVATES
Fri 2026-11-06 03:20:00 UTC 15h left n/a n/a backup-db.timer backup-db.service
OnCalendar= expression shown was verified for real with systemd-analyze calendar, which runs standalone and needs no booted systemd instance. Everything else, the unit files, the crontab and /etc/cron.d syntax, and the SELinux labels and ausearch/audit2allow/restorecon workflow, was cross-checked against the systemd.timer(5) / systemd.time(7) man pages, Red Hat's RH134 course text, and the cron SELinux policy docs rather than run end to end on a live box. The command output shown for those parts is illustrative, built to match documented behavior, not captured from a real run.
Every few months someone on a RHEL forum asks whether cron is "deprecated" now that systemd timers exist. It isn't, and the confusion usually comes from mixing up two different things: what Red Hat's course material recommends for new work, and what the package manager will let you remove. Cronie (the cron implementation RHEL ships) is still installed by default on RHEL 10, still fully supported, and still shows up on the RHCSA exam alongside timers under the scheduling objective. What actually changed is the default recommendation, not the tool's presence.
The mechanical difference matters more than the branding. Cron is a daemon (crond) that wakes up once a minute, reads a handful of crontab files, and fires anything whose schedule matches. It has no idea whether a job ran last time, and if the box was off at 3:20am, that run is just gone. A systemd timer is a unit, wired into the same dependency graph as every other service, triggered by the journal-aware event loop that's already running as PID 1. That gets you catch-up runs, structured logging, randomized delay, and resource limits inherited straight from [Service], at the cost of two files instead of one line.
What changed in RHEL 10, and what didn't
Red Hat's RH134 course text for RHEL 10 states it plainly: the systemd daemon and service manager now replaces the traditional cron daemon for most scheduling tasks. That's a recommendation, not a removal. Cronie stays in the default package set, crond still starts on boot, and the current RHCSA EX200 objectives (based on RHEL 10) list "schedule one-time and recurring work with at, cron, and systemd timers" as a single objective, not two competing ones. See the EX200 2026 format changes if you're studying against the clock. Practically: new automation you write today should default to a timer unless there's a specific reason not to. Existing crontabs you inherited don't need a rewrite just because a course slide says so.
When cron is still the right call
- The job is a genuine one-liner and the overhead of two unit files isn't buying you anything (a weekly
find /tmp -mtime +7 -delete, for instance). - You're maintaining a crontab that predates this box and nobody's asked you to modernize it.
- The script needs to run unchanged on a non-systemd Unix box too, so a timer unit would just be dead weight on half your fleet.
- The team already reads crontab syntax fluently and a timer unit would be the only one in the environment, which is its own kind of maintenance burden.
- It's a true one-time job at a specific future moment: that's
at, not cron or a timer at all.
When a systemd timer earns the extra lines
- The box might be off at the scheduled time.
Persistent=truefires the job once at the next boot if it missed its window. Cron has nothing equivalent; a missed 3am backup on a laptop that was asleep is just a backup that never happened. - You don't want every job in a fleet firing at the same second.
RandomizedDelaySec=spreads the actual start time across a window, which matters when a hundred VPS instances all run the same backup script. - You want the job's logs where the rest of its life is logged.
journalctl -u your.serviceshows stdout, stderr, and start/stop events together. Cron's output, if it's captured at all, usually ends up mailed to a local account nobody reads. - The job should inherit resource or dependency controls already defined on a related service:
CPUQuota=,MemoryMax=,After=,Requires=. A timer's companion service is a normal unit, so it gets all of that for free. - The trigger is relative to boot, not the wall clock.
OnBootSec=15minhas no clean cron equivalent at all.
A working timer and service pair
Two files. The service describes what runs, the timer describes when.
cat /etc/systemd/system/backup-db.service
[Unit]
Description=Nightly database dump
[Service]
Type=oneshot
ExecStart=/usr/local/bin/backup-db.sh
cat /etc/systemd/system/backup-db.timer
[Unit]
Description=Run backup-db.service nightly, with catch-up and jitter
[Timer]
OnCalendar=*-*-* 03:20:00
Persistent=true
RandomizedDelaySec=300
AccuracySec=1min
[Install]
WantedBy=timers.target
Before you enable anything, check that the calendar expression actually means what you think it means. This catches the single most common timer bug: a typo in OnCalendar= that systemd accepts silently and then never fires.
systemd-analyze calendar "*-*-* 03:20:00"
Normalized form: *-*-* 03:20:00
Next elapse: Fri 2026-11-06 03:20:00 UTC
From now: 15h left
Now load and enable it:
sudo systemctl daemon-reload
sudo systemctl enable --now backup-db.timer
Created symlink /etc/systemd/system/timers.target.wants/backup-db.timer → /etc/systemd/system/backup-db.timer.
systemctl list-timers backup-db.timer
NEXT LEFT LAST PASSED UNIT ACTIVATES
Fri 2026-11-06 03:20:00 UTC 15h left n/a n/a backup-db.timer backup-db.service
And when it actually runs, the logs sit right where you'd expect them:
journalctl -u backup-db.service --since today
Nov 06 03:20:00 db01 systemd[1]: Starting backup-db.service - Nightly database dump...
Nov 06 03:20:04 db01 backup-db.sh[48213]: dump complete: 212MB written to /backup/db-20261106.sql.gz
Nov 06 03:20:04 db01 systemd[1]: backup-db.service: Deactivated successfully.
Cron on RHEL: crond, crontab, and /etc/cron.d
None of this goes away, and it's worth knowing cold because it's still the right tool often enough. crond (shipped by the cronie package) is the daemon; if it isn't running, nothing in any crontab fires, full stop.
systemctl status crond
● crond.service - Command Scheduler
Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled)
Active: active (running)
Per-user jobs go through crontab -e (edits the current user's table) and crontab -l (lists it). System-wide jobs that need to specify which user runs them go in /etc/crontab or drop-in files under /etc/cron.d/, where the format adds a username field that per-user crontabs don't have:
cat /etc/cron.d/disk-check
*/15 * * * * root /usr/local/bin/check-disk.sh
The classic "works when I run it, does nothing from cron" bug is almost always environment, not permissions: cron runs jobs with a minimal environment, not your interactive shell's PATH or aliases. Use absolute paths inside the script, or source what you need explicitly at the top of it, and that category of bug mostly disappears.
The trap that breaks both: SELinux labels, not SELinux itself
This is where a lot of otherwise-careful admins reach for setenforce 0, and it's exactly the wrong move. The real issue is almost always a file context mismatch, not SELinux being "in the way." /etc/crontab and files under /etc/cron.d/ need the system_cron_spool_t label; per-user tables under /var/spool/cron/ need user_cron_spool_t; the job itself executes in the system_cronjob_t domain. If you deploy a cron file by copying it in with scp, pulling it from git, or writing it through a config management tool that doesn't know about SELinux, it often lands labeled etc_t (or unlabeled) instead, and crond either refuses to load it or the job silently never runs.
ls -Z /etc/cron.d/disk-check
unconfined_u:object_r:etc_t:s0 /etc/cron.d/disk-check
That etc_t is the tell. Confirm it with the audit log, then fix the label, don't disable enforcement:
sudo ausearch -m avc -ts recent | grep cron
type=AVC msg=audit(1793909640.123:456): avc: denied { read } for pid=1842 comm="crond" name="disk-check" dev="vda1" ino=917532 scontext=system_u:system_r:crond_t:s0 tcontext=unconfined_u:object_r:etc_t:s0 tclass=file permissive=0
sudo restorecon -Fv /etc/cron.d/disk-check
Relabeled /etc/cron.d/disk-check from unconfined_u:object_r:etc_t:s0 to unconfined_u:object_r:system_cron_spool_t:s0
If the denial is about something your script genuinely needs to do that isn't a mislabeling problem (a real new access pattern, not a wrong label), generate a narrow policy module with audit2allow instead of turning enforcement off wholesale:
sudo ausearch -m avc -ts recent | audit2allow -M cron_local
******************** IMPORTANT ***********************
To make this policy package active, execute:
semodule -i cron_local.pp
sudo semodule -i cron_local.pp
# semodule prints nothing on success; confirm the module loaded:
semodule -l | grep cron_local
cron_local 1.0
Systemd timers mostly sidestep this specific trap because the service's ExecStart runs under the domain already assigned to the unit, but the same principle applies the moment you start a timer-driven service as a non-root user outside the standard tree: check the context before you consider disabling anything.
If this fails
Timer shows up in list-timers but NEXT stays blank, or it never fires. Nine times out of ten it's a typo in OnCalendar= that systemd parsed without complaint. Run systemd-analyze calendar "your expression" first; if it can't produce a "Next elapse" line, the unit can't either.
Cron job runs fine by hand, does nothing from crontab. Almost always the minimal cron environment, not permissions. Check with grep CRON /var/log/cron (or journalctl -u crond if your box routes it there); fix by using absolute paths and sourcing any environment the script actually needs.
Cron file in /etc/cron.d/ or a per-user table loaded, then silently did nothing (or crond logs "Unauthorized SELinux context"). Run ls -Z on the file; if it's not system_cron_spool_t (or user_cron_spool_t for a per-user table), run sudo restorecon -Fv on it. Confirm with ausearch -m avc -ts recent first if you want to be sure that's actually the cause before you touch anything.
Picking one
If you're writing new scheduled automation on a RHEL 10 box today, default to a timer unit: you get catch-up, journal logging, and jitter for free, and it's what Red Hat's own material now expects. Keep cron for the quick one-liners, the crontabs you inherited and don't want to touch, and anything that has to run the same way on a box that isn't running systemd at all. Neither tool is going anywhere on RHEL 9 or RHEL 10, and the RHCSA exam expects you to know both, so this isn't really an either-or decision as much as it's picking the right default for new work.
If you want to run through the unit files and the SELinux relabeling above yourself before trusting them on anything that matters, do it on a throwaway box, not production. Vultr is currently running a $300 trial credit promo that's plenty for a disposable lab like that.
For the SELinux habits that keep showing up in posts like this one, see the AVC denial troubleshooting guide. And if you're setting up a fresh AlmaLinux or Rocky 10 box from scratch before any of this applies, start with initial server setup.