1SYSTEMD-TIMESYNCD.SERVICE(8)systemd-timesyncd.servicSeYSTEMD-TIMESYNCD.SERVICE(8)
2
3
4

NAME

6       systemd-timesyncd.service, systemd-timesyncd - Network Time
7       Synchronization
8

SYNOPSIS

10       systemd-timesyncd.service
11
12       /usr/lib/systemd/systemd-timesyncd
13

DESCRIPTION

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

FILES

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).
54
55           When initializing, the local clock is advanced to the modification
56           time of this file (if the file timestamp is in the past this
57           adjustment is not made). If the file does not exist yet, the clock
58           is instead advanced to the modification time of
59           /usr/lib/clock-epoch – if it exists – or to a time derived from the
60           source tree at build time. This mechanism is used to ensure that
61           the system clock remains somewhat reasonably initialized and
62           roughly monotonic across reboots, in case no battery-buffered local
63           RTC is available.
64
65       /usr/lib/clock-epoch
66           The modification time ("mtime") of this file is used for advancing
67           the system clock in case /var/lib/systemd/timesync/clock does not
68           exist yet, see above.
69
70       /run/systemd/timesync/synchronized
71           A file that is touched on each successful synchronization, to
72           assist systemd-time-wait-sync and other applications to detecting
73           synchronization with accurate reference clocks.
74

SEE ALSO

76       systemd(1), timesyncd.conf(5), systemd.network(5), systemd-
77       networkd.service(8), systemd-time-wait-sync.service(8),
78       systemd.special(7), timedatectl(1), localtime(5), hwclock(8)
79
80
81
82systemd 254                                       SYSTEMD-TIMESYNCD.SERVICE(8)
Impressum