]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/timesyncd.conf.xml
travis: use UBSan checks from OSS-Fuzz
[thirdparty/systemd.git] / man / timesyncd.conf.xml
CommitLineData
874ff7bf 1<?xml version='1.0'?> <!--*-nxml-*-->
3a54a157 2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
12b42c76 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
0307f791 4<!-- SPDX-License-Identifier: LGPL-2.1+ -->
874ff7bf 5
be795898 6<refentry id="timesyncd.conf" conditional='ENABLE_TIMESYNCD'
798d3a52
ZJS
7 xmlns:xi="http://www.w3.org/2001/XInclude">
8 <refentryinfo>
9 <title>timesyncd.conf</title>
10 <productname>systemd</productname>
798d3a52
ZJS
11 </refentryinfo>
12
13 <refmeta>
14 <refentrytitle>timesyncd.conf</refentrytitle>
15 <manvolnum>5</manvolnum>
16 </refmeta>
17
18 <refnamediv>
19 <refname>timesyncd.conf</refname>
20 <refname>timesyncd.conf.d</refname>
21 <refpurpose>Network Time Synchronization configuration files</refpurpose>
22 </refnamediv>
23
24 <refsynopsisdiv>
12b42c76
TG
25 <para><filename>/etc/systemd/timesyncd.conf</filename></para>
26 <para><filename>/etc/systemd/timesyncd.conf.d/*.conf</filename></para>
798d3a52 27 <para><filename>/run/systemd/timesyncd.conf.d/*.conf</filename></para>
12b42c76 28 <para><filename>/usr/lib/systemd/timesyncd.conf.d/*.conf</filename></para>
798d3a52
ZJS
29 </refsynopsisdiv>
30
31 <refsect1>
32 <title>Description</title>
33
0f943ae4
ZJS
34 <para>These configuration files control NTP network time synchronization. See
35 <citerefentry><refentrytitle>systemd.syntax</refentrytitle><manvolnum>5</manvolnum></citerefentry>
36 for a general description of the syntax.</para>
798d3a52
ZJS
37 </refsect1>
38
e93549ef 39 <xi:include href="standard-conf.xml" xpointer="main-conf" />
798d3a52
ZJS
40
41 <refsect1>
42 <title>Options</title>
43
6c033c34
LP
44 <para>The following settings are configured in the <literal>[Time]</literal> section:</para>
45
798d3a52
ZJS
46 <variablelist class='network-directives'>
47
48 <varlistentry>
49 <term><varname>NTP=</varname></term>
b938cb90 50 <listitem><para>A space-separated list of NTP server host
798d3a52
ZJS
51 names or IP addresses. During runtime this list is combined
52 with any per-interface NTP servers acquired from
53 <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
54 systemd-timesyncd will contact all configured system or
55 per-interface servers in turn until one is found that
07883f19
YW
56 responds. When the empty string is assigned, the list of
57 NTP servers is reset, and all assignments prior to this one
58 will have no effect. This setting defaults to an empty
798d3a52
ZJS
59 list.</para></listitem>
60 </varlistentry>
61
62 <varlistentry>
63 <term><varname>FallbackNTP=</varname></term>
b938cb90 64 <listitem><para>A space-separated list of NTP server host
798d3a52
ZJS
65 names or IP addresses to be used as the fallback NTP servers.
66 Any per-interface NTP servers obtained from
67 <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
68 take precedence over this setting, as do any servers set via
69 <varname>NTP=</varname> above. This setting is hence only used
07883f19
YW
70 if no other NTP server information is known. When the empty
71 string is assigned, the list of NTP servers is reset,
72 and all assignments prior to this one will have no effect.
73 If this option is not given, a compiled-in list of NTP servers
74 is used instead.</para></listitem>
798d3a52
ZJS
75 </varlistentry>
76
f907cc16
YW
77 <varlistentry>
78 <term><varname>RootDistanceMaxSec=</varname></term>
a4465d0d 79 <listitem><para>Maximum acceptable root distance. Takes a time value (in seconds).
f907cc16
YW
80 Defaults to 5 seconds.</para></listitem>
81 </varlistentry>
82
a4465d0d
YW
83 <varlistentry>
84 <term><varname>PollIntervalMinSec=</varname></term>
85 <term><varname>PollIntervalMaxSec=</varname></term>
86 <listitem><para>The minimum and maximum poll intervals for NTP messages.
87 Each setting takes a time value (in seconds).
88 <varname>PollIntervalMinSec=</varname> must not be smaller than 16 seconds.
89 <varname>PollIntervalMaxSec=</varname> must be larger than <varname>PollIntervalMinSec=</varname>.
90 <varname>PollIntervalMinSec=</varname> defaults to 32 seconds, and
91 <varname>PollIntervalMaxSec=</varname> defaults to 2048 seconds.</para></listitem>
92 </varlistentry>
93
798d3a52
ZJS
94 </variablelist>
95 </refsect1>
96
97 <refsect1>
98 <title>See Also</title>
99 <para>
100 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
101 <citerefentry><refentrytitle>systemd-timesyncd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
102 <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
103 </para>
104 </refsect1>
874ff7bf
LP
105
106</refentry>