So in Ubuntu we don't use chrony. Ubuntu uses systemd time syncd to synchronize time.
And this command is controlled by the timedatectl command. It's fully integrated. And that makes the
communication between the timedatectl front end command and the time sync service itself pretty neat.
There's also a configuration that is written into etc SYSTEMD timesyncd conf and that's where you
need to go if there's anything that you need to change. Let's do a quick check.
So here we are on the Ubuntu machine and let's
start by using systemctl status on systemd time syncd.
And there. Oh, we see that it has a warning. The
source configuration fail or drop ins changed on disk run system.
What is that? Use the right arrow to read it completely. Systemctl Daemon reload if you
see a warning like that, there's only one choice and that is to do it.
But not before we have checked out that successfully
synchronizing with ntp.ubuntu.com but hey, sudo systemctl daemon reload.
That's a warning that cannot be ignored.
Next I'm going to use a sudo vim on etc SYSTEMD timesyncd conf
and here we can see the timesync configuration that has a couple of
options with the fallback. NTP is ntpubuntu.com well, that seems to be doing
all right. If there's anything that you want to change here, change it.
And then you reload your systemd time syncd service
to have it pick up your time configuration.
TimeDatectl Status should show the current synchronization status.
So the clock is synchronized and the NTP service is active. And that's how you manage it on Ubuntu.