5

I see only one event of time synchronization in log. It occurs at boot:

systemd-timesyncd[690]: Synchronized to time server 188.112.42.5:123 (2.debian.pool.ntp.org).

How to force periodic time updates? How to check what is the current interval? I don't see anything interesting in timesyncd.conf?

slm
  • 7,615
  • 16
  • 56
  • 76
ardabro
  • 187
  • 1
  • 7

2 Answers2

3

You can control the interval which this polls the NTP servers through these properties in the systemd-timesyncd config file /etc/systemd/timesyncd.conf:

   PollIntervalMinSec=, PollIntervalMaxSec=

   The minimum and maximum poll intervals for NTP messages. Each setting takes a time 
   value (in seconds). PollIntervalMinSec= must not be smaller than 16 seconds. 
   PollIntervalMaxSec= must be larger than PollIntervalMinSec=. PollIntervalMinSec= 
   defaults to 32 seconds, and PollIntervalMaxSec= defaults to 2048 seconds.

The above appears to have been added in late 2017 - timesync: make poll interval configurable #7268.

References

slm
  • 7,615
  • 16
  • 56
  • 76
1

systemd-timesyncd is a SNTP client that does a simple time set. This is specifically not a full NTP implementation, so it cannot estimate error and show performance over time.

Install chrony or ntpd, as you want constant slew to correct drift. Set it to use your internal NTP servers.

John Mahowald
  • 32,050
  • 2
  • 19
  • 34