Interview Prep/Linux/Boot, time, cron and kernel

A cron job hasn't run for days; nothing in its log, no errors.

BeginnerTroubleshootingBoot, time, cron and kernel
Answer

Likely causes → The cron daemon isn't running or isn't enabled, the crontab file is invalid, or the job's own log is just not being written.

Diagnose →

systemctl status crond 2>/dev/null || systemctl status cron
journalctl -u crond -u cron --since "2 days ago" | tail
sudo crontab -l -u app
grep CRON /var/log/syslog 2>/dev/null | tail     # Debian/Ubuntu

Fix → sudo systemctl enable --now crond (RHEL) or cron (Debian). Fix crontab syntax errors reported in the journal.

Prevent → Use a dead-man's switch so missed runs alert, and include the cron service in health checks.

All Linux questions Roadmap: Linux

More on Boot, time, cron and kernel