Closed mathiasgui closed 3 months ago
The reason why the ntpsec.service
does not exist on this system is that the distribution uses systemd
and relies on systemd-timesyncd
for time synchronization instead. systemd-timesyncd
is a lightweight and integrated time synchronization service that comes with systemd
, which is the default service manager in many modern Linux distributions.
To resolve the issue, use systemd-timesyncd
instead of ntpsec
. Here are the relevant commands to manage systemd-timesyncd
:
To check the status of systemd-timesyncd
:
sudo systemctl status systemd-timesyncd
To start systemd-timesyncd
:
sudo systemctl start systemd-timesyncd
To enable systemd-timesyncd
to start on boot:
sudo systemctl enable systemd-timesyncd
By using systemd-timesyncd
, the system's time will be synchronized correctly without needing to install ntpsec
.
refer to the documentation: https://github.com/CPNV-ES-MON1/Zabbix/wiki/7-%E2%80%90-Red%C3%A9marrer-un-service-arr%C3%AAt%C3%A9#linux
error Failed to start ntpsec.service: Unit ntpsec.service not found. when starting ntpsec.service