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

A cron job runs at the wrong hour: scheduled for 02:00 but runs at 07:30.

IntermediateTroubleshootingBoot, time, cron and kernel
Answer

Likely causes → The system timezone differs from what you assumed (server in UTC, you expected IST), or the timezone was changed and cron wasn't restarted.

Diagnose →

timedatectl | grep 'Time zone'
date; date -u
systemctl show crond -p ActiveEnterTimestamp 2>/dev/null

Fix → Write schedules in the server's timezone (UTC recommended), or set CRON_TZ=Asia/Kolkata at the top of the crontab where supported (cronie). Restart cron after timezone changes.

Prevent → Keep servers on UTC and document job times in UTC.

All Linux questions Roadmap: Linux

More on Boot, time, cron and kernel