Does Clock synchronization work differently in Ubuntu 18.04 and 20.04?
I have configured synchronization to local time server. After configuring clock synchronization in Ubuntu 18.04 , status is shown synchronized to time server. But, status in Ubuntu 20.04 is "Initial time synchronization to time server...".
Why Ubuntu 20.04 is not showing status "Synchronized"? IF it is not synchronized, how to resolve it?
systemd-timesyncd status in ubuntu 20.04 :
$ systemctl status systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2023-03-18 23:17:29 IST; 2s ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 476708 (systemd-timesyn)
Status: "**Initial synchronization to time server** <server_ip>."
Tasks: 2 (limit: 19009)
Memory: 1.2M
CGroup: /system.slice/systemd-timesyncd.service
└─476708 /lib/systemd/systemd-timesyncd
.. systemd[1]: Starting Network Time Synchronization...
.. systemd[1]: Started Network Time Synchronization.
.. systemd-timesyncd[476708]: Initial synchronization to time server
systemd-timesyncd status in ubuntu 18.04 :
$ systemctl status systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2023-03-18 22:26:32 IST; 25min ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 7607 (systemd-timesyn)
Status: " ** Synchronized to time server ** <server_ip>."
Tasks: 2 (limit: 4915)
CGroup: /system.slice/systemd-timesyncd.service
└─7607 /lib/systemd/systemd-timesyncd
.. systemd[1]: Starting Network Time Synchronization...
.. systemd[1]: Started Network Time Synchronization.
.. systemd-timesyncd[7607]: Synchronized to time server