After upgrading to Aria Automation 8.18, the systemd-timesyncd service does not start automatically.
Checking the service status and the symlink directory shows the following output:
# systemctl status systemd-timesyncd● systemd-timesyncd.service - Network Time Synchronization Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled) Active: inactive (dead) Docs: man:systemd-timesyncd.service(8)
# ls -l /etc/systemd/system/sysinit.target.wants/total 0
Aria Automation 8.18.x
During the OS upgrade from Photon OS 3.0 to 4.0 that occurs as part of the Aria Automation upgrade, the following symlink goes missing:
/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service -> /usr/lib/systemd/system/systemd-timesyncd.service
To resolve this issue, recreate the symlink and start the service by running the following commands:
systemctl enable systemd-timesyncdsystemctl start systemd-timesyncd