1 <?xml version='
1.0'
?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6 SPDX-License-Identifier: LGPL-2.1+
8 This file is part of systemd.
10 Copyright 2018 Peter A. Bigot
13 <refentry id=
"systemd-time-wait-sync.service" conditional='ENABLE_TIMESYNCD'
>
16 <title>systemd-time-wait-sync.service
</title>
17 <productname>systemd
</productname>
21 <contrib>Developer
</contrib>
22 <firstname>Peter
</firstname>
23 <surname>Bigot
</surname>
24 <email>pab@pabigot.com
</email>
30 <refentrytitle>systemd-time-wait-sync.service
</refentrytitle>
31 <manvolnum>8</manvolnum>
35 <refname>systemd-time-wait-sync.service
</refname>
36 <refname>systemd-time-wait-sync
</refname>
37 <refpurpose>Wait Until Kernel Time Synchronized
</refpurpose>
41 <para><filename>systemd-time-wait-sync.service
</filename></para>
42 <para><filename>/usr/lib/systemd/systemd-time-wait-sync
</filename></para>
46 <title>Description
</title>
48 <para><filename>systemd-time-wait-sync
</filename> is a system service that delays the start of units that depend on
49 <filename>time-sync.target
</filename> until
<filename>systemd-timesyncd.service
</filename> or something else has
50 set the system time and marked it as synchronized. Reaching this state generally requires synchronization with an
51 external source, such as an NTP server.
</para>
53 <para>When this unit is not enabled the
<filename>time-sync.target
</filename> synchronization point may be reached
54 as soon as the system time is advanced by
<filename>systemd-timesyncd.service
</filename> to the time stored at the
55 last shutdown. That time may not meet the expectations of dependent services that require an accurate
63 <para>This service works correctly with a time synchronization service like
64 <filename>systemd-timesyncd.service
</filename> that uses the same protocol as NTP to set the time from a
65 synchronized source. When used with time synchronization services that follow a different protocol the event of
66 setting synchronized time may not be detected in which case this service will not complete.
</para>
70 <title>See Also
</title>
72 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
73 <citerefentry><refentrytitle>systemd.special
</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
74 <citerefentry><refentrytitle>systemd-timesyncd.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>,