1SYSTEMD-TIMESYNCD.SERVICE(8)systemd-timesyncd.servicSeYSTEMD-TIMESYNCD.SERVICE(8)
2
3
4
6 systemd-timesyncd.service, systemd-timesyncd - Network Time
7 Synchronization
8
10 systemd-timesyncd.service
11
12 /usr/lib/systemd/systemd-timesyncd
13
15 systemd-timesyncd is a system service that may be used to synchronize
16 the local system clock with a remote Network Time Protocol (NTP)
17 server. It also saves the local time to disk every time the clock has
18 been synchronized and uses this to possibly advance the system realtime
19 clock on subsequent reboots to ensure it (roughly) monotonically
20 advances even if the system lacks a battery-buffered RTC chip.
21
22 The systemd-timesyncd service implements SNTP only. This minimalistic
23 service will step the system clock for large offsets or slowly adjust
24 it for smaller deltas. Complex use cases that require full NTP support
25 (and where SNTP is not sufficient) are not covered by
26 systemd-timesyncd.
27
28 The NTP servers contacted are determined from the global settings in
29 timesyncd.conf(5), the per-link static settings in .network files, and
30 the per-link dynamic settings received over DHCP. See
31 systemd.network(5) for further details.
32
33 timedatectl(1)'s set-ntp command may be used to enable and start, or
34 disable and stop this service.
35
36 timedatectl(1)'s timesync-status or show-timesync command can be used
37 to show the current status of this service.
38
39 systemd-timesyncd initialization delays the start of units that are
40 ordered after time-set.target (see systemd.special(7) for details)
41 until the local time has been updated from
42 /var/lib/systemd/timesync/clock (see below) in order to make it roughly
43 monotonic. It does not delay other units until synchronization with an
44 accurate reference time sources has been reached. Use systemd-time-
45 wait-sync.service(8) to achieve that, which will delay start of units
46 that are ordered after time-sync.target until synchronization to an
47 accurate reference clock is reached.
48
50 /var/lib/systemd/timesync/clock
51 The modification time ("mtime") of this file is updated on each
52 successful NTP synchronization or after each SaveIntervalSec= time
53 interval, as specified in timesyncd.conf(5). At the minimum, it
54 will be set to the systemd build date. It is used to ensure that
55 the system clock remains roughly monotonic across reboots, in case
56 no local RTC is available.
57
58 /run/systemd/timesync/synchronized
59 A file that is touched on each successful synchronization, to
60 assist systemd-time-wait-sync and other applications to detecting
61 synchronization with accurate reference clocks.
62
64 systemd(1), timesyncd.conf(5), systemd.network(5), systemd-
65 networkd.service(8), systemd-time-wait-sync.service(8),
66 systemd.special(7), timedatectl(1), localtime(5), hwclock(8)
67
68
69
70systemd 251 SYSTEMD-TIMESYNCD.SERVICE(8)