]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-time-wait-sync.service.xml
time-wait-sync: use watchfile to coordinate with timesyncd
[thirdparty/systemd.git] / man / systemd-time-wait-sync.service.xml
CommitLineData
5c3376ef
PB
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">
4
5<!--
6 SPDX-License-Identifier: LGPL-2.1+
7
8 This file is part of systemd.
9
10 Copyright 2018 Peter A. Bigot
5c3376ef
PB
11-->
12
13<refentry id="systemd-time-wait-sync.service" conditional='ENABLE_TIMESYNCD'>
14
15 <refentryinfo>
16 <title>systemd-time-wait-sync.service</title>
17 <productname>systemd</productname>
18
19 <authorgroup>
20 <author>
21 <contrib>Developer</contrib>
22 <firstname>Peter</firstname>
23 <surname>Bigot</surname>
24 <email>pab@pabigot.com</email>
25 </author>
26 </authorgroup>
27 </refentryinfo>
28
29 <refmeta>
30 <refentrytitle>systemd-time-wait-sync.service</refentrytitle>
31 <manvolnum>8</manvolnum>
32 </refmeta>
33
34 <refnamediv>
35 <refname>systemd-time-wait-sync.service</refname>
36 <refname>systemd-time-wait-sync</refname>
37 <refpurpose>Wait Until Kernel Time Synchronized</refpurpose>
38 </refnamediv>
39
40 <refsynopsisdiv>
41 <para><filename>systemd-time-wait-sync.service</filename></para>
42 <para><filename>/usr/lib/systemd/systemd-time-wait-sync</filename></para>
43 </refsynopsisdiv>
44
45 <refsect1>
46 <title>Description</title>
47
48 <para><filename>systemd-time-wait-sync</filename> is a system service that delays the start of units that depend on
2dd79846
PB
49 <filename>time-sync.target</filename> until the system time has been synchronized with an accurate time source by
50 <filename>systemd-timesyncd.service</filename>.</para>
5c3376ef 51
2dd79846
PB
52 <para><filename>systemd-timesyncd.service</filename> notifies on successful synchronization.
53 <filename>systemd-time-wait-sync</filename> also tries to detect when the kernel marks the time as synchronized,
54 but this detection is not reliable and is intended only as a fallback for other servies that can be used to
55 synchronize time (e.g., ntpd, chronyd).</para>
5c3376ef
PB
56
57 </refsect1>
58
59 <refsect1>
2dd79846
PB
60 <title>Files</title>
61
62 <variablelist>
63 <varlistentry>
64 <term><filename>/run/systemd/timesync/synchronized</filename></term>
65
66 <listitem>
67 <para>The presence of this file indicates to this service that the system clock has been synchronized.</para>
68 </listitem>
69
70 </varlistentry>
71 </variablelist>
5c3376ef 72
5c3376ef
PB
73 </refsect1>
74
75 <refsect1>
76 <title>See Also</title>
77 <para>
78 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
79 <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
80 <citerefentry><refentrytitle>systemd-timesyncd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
81 </para>
82 </refsect1>
83
84</refentry>