Debugging

Unit cron.service could not be found.

The cron service has a different name on each distro family. Either you used the wrong name, or cron isn't installed at all.

The right name for your distro

DistroPackageService nameStart it
Debian, Ubuntu, Mint, Raspberry Pi OScroncron.servicesudo systemctl enable --now cron
Fedora, RHEL, Rocky, Alma, CentOS Stream, Amazon Linuxcroniecrond.servicesudo systemctl enable --now crond
Arch, Manjarocroniecronie.servicesudo systemctl enable --now cronie
AlpineBusyBox (built in) + busybox-openrcOpenRC service crondrc-update add crond && rc-service crond start

These names come from the distros' own packaging: Debian ships cron.service, Fedora installs cronie's unit as crond.service, and Arch installs the same unit as cronie.service.

Find what's installed

systemctl list-unit-files | grep -i cron
command -v crontab cron crond

If nothing comes back, cron isn't installed. Install it with the commands on our crontab: command not found page.

Amazon Linux 2023

AL2023 doesn't include cronie, so on a fresh instance there is no cron unit at all. Install it (sudo dnf install -y cronie) and then use crond. AWS recommends systemd timers instead. See crontab on Amazon Linux 2023.

"System has not been booted with systemd as init system"

That's a different error: systemctl itself can't work because systemd isn't PID 1. You'll see it inside most Docker containers and in WSL when systemd is off. Fixes: cron in Docker and cron in WSL.

Check it's running

systemctl status cron      # or crond / cronie
journalctl -u cron -n 20

Sources

Checked against these official sources and, where marked, tested on Ubuntu 24.04 (cron 3.0pl1-184ubuntu2). Last verified 18 November 2026.