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

Logs from different servers are out of order and `timedatectl` shows `System clock synchronized: no` and `NTP service: inactive`.

BeginnerTroubleshootingBoot, time, cron and kernel
Answer

Likely causes → No time sync daemon running (chrony not installed/enabled, or conflicting ntpd and chronyd).

Diagnose →

timedatectl
systemctl status chronyd ntpd systemd-timesyncd 2>/dev/null | grep -E 'Loaded|Active'

Fix → sudo dnf install -y chrony && sudo systemctl enable --now chronyd (or systemctl enable --now systemd-timesyncd on minimal Ubuntu), then timedatectl set-ntp true. Run only one sync daemon.

Prevent → Include chrony in the base image and alert on unsynchronised hosts.

All Linux questions Roadmap: Linux

More on Boot, time, cron and kernel