There are several implementations for NTP synchronization, ntpd
, chrony
and systemd-timesyncd
, to name a few. Running ntpdate every minute has a lot of drawbacks, for example:
- time is not adjusted smoothly, so it can jump backwards and/or forwards
- there is a lot of load on the NTP server you are querying, so please do not implements this "handycraft solution"
NTP daemons on the other hand
- will adjust the time smoothly, so time will always advance in a normal manner, but sometimes a bit slower, sometimes a bit faster
- will allow the kernel to apply a general "skew" to the clock to compensate for inaccuracies in the hardware clock (which are always present)
- thus they will need need to query the NTP server only very few times per hour or even less
And most of the time, all you will need to do is to install the package. Debian-based systems will usually start the daemon right away, on others you may need to start and enable them.