]>
Commit | Line | Data |
---|---|---|
874ff7bf | 1 | <?xml version='1.0'?> <!--*-nxml-*--> |
874ff7bf | 2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" |
12b42c76 | 3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
874ff7bf LP |
4 | |
5 | <!-- | |
572eb058 ZJS |
6 | SPDX-License-Identifier: LGPL-2.1+ |
7 | ||
874ff7bf LP |
8 | This file is part of systemd. |
9 | ||
10 | Copyright 2014 Lennart Poettering | |
11 | ||
12 | systemd is free software; you can redistribute it and/or modify it | |
13 | under the terms of the GNU Lesser General Public License as published by | |
14 | the Free Software Foundation; either version 2.1 of the License, or | |
15 | (at your option) any later version. | |
16 | ||
17 | systemd is distributed in the hope that it will be useful, but | |
18 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
20 | Lesser General Public License for more details. | |
21 | ||
22 | You should have received a copy of the GNU Lesser General Public License | |
23 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
24 | --> | |
25 | ||
be795898 | 26 | <refentry id="timesyncd.conf" conditional='ENABLE_TIMESYNCD' |
798d3a52 ZJS |
27 | xmlns:xi="http://www.w3.org/2001/XInclude"> |
28 | <refentryinfo> | |
29 | <title>timesyncd.conf</title> | |
30 | <productname>systemd</productname> | |
31 | ||
32 | <authorgroup> | |
33 | <author> | |
34 | <contrib>Developer</contrib> | |
35 | <firstname>Lennart</firstname> | |
36 | <surname>Poettering</surname> | |
37 | <email>lennart@poettering.net</email> | |
38 | </author> | |
39 | </authorgroup> | |
40 | </refentryinfo> | |
41 | ||
42 | <refmeta> | |
43 | <refentrytitle>timesyncd.conf</refentrytitle> | |
44 | <manvolnum>5</manvolnum> | |
45 | </refmeta> | |
46 | ||
47 | <refnamediv> | |
48 | <refname>timesyncd.conf</refname> | |
49 | <refname>timesyncd.conf.d</refname> | |
50 | <refpurpose>Network Time Synchronization configuration files</refpurpose> | |
51 | </refnamediv> | |
52 | ||
53 | <refsynopsisdiv> | |
12b42c76 TG |
54 | <para><filename>/etc/systemd/timesyncd.conf</filename></para> |
55 | <para><filename>/etc/systemd/timesyncd.conf.d/*.conf</filename></para> | |
798d3a52 | 56 | <para><filename>/run/systemd/timesyncd.conf.d/*.conf</filename></para> |
12b42c76 | 57 | <para><filename>/usr/lib/systemd/timesyncd.conf.d/*.conf</filename></para> |
798d3a52 ZJS |
58 | </refsynopsisdiv> |
59 | ||
60 | <refsect1> | |
61 | <title>Description</title> | |
62 | ||
63 | <para>These configuration files control NTP network time | |
64 | synchronization.</para> | |
65 | ||
66 | </refsect1> | |
67 | ||
e93549ef | 68 | <xi:include href="standard-conf.xml" xpointer="main-conf" /> |
798d3a52 ZJS |
69 | |
70 | <refsect1> | |
71 | <title>Options</title> | |
72 | ||
6c033c34 LP |
73 | <para>The following settings are configured in the <literal>[Time]</literal> section:</para> |
74 | ||
798d3a52 ZJS |
75 | <variablelist class='network-directives'> |
76 | ||
77 | <varlistentry> | |
78 | <term><varname>NTP=</varname></term> | |
b938cb90 | 79 | <listitem><para>A space-separated list of NTP server host |
798d3a52 ZJS |
80 | names or IP addresses. During runtime this list is combined |
81 | with any per-interface NTP servers acquired from | |
82 | <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>. | |
83 | systemd-timesyncd will contact all configured system or | |
84 | per-interface servers in turn until one is found that | |
07883f19 YW |
85 | responds. When the empty string is assigned, the list of |
86 | NTP servers is reset, and all assignments prior to this one | |
87 | will have no effect. This setting defaults to an empty | |
798d3a52 ZJS |
88 | list.</para></listitem> |
89 | </varlistentry> | |
90 | ||
91 | <varlistentry> | |
92 | <term><varname>FallbackNTP=</varname></term> | |
b938cb90 | 93 | <listitem><para>A space-separated list of NTP server host |
798d3a52 ZJS |
94 | names or IP addresses to be used as the fallback NTP servers. |
95 | Any per-interface NTP servers obtained from | |
96 | <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> | |
97 | take precedence over this setting, as do any servers set via | |
98 | <varname>NTP=</varname> above. This setting is hence only used | |
07883f19 YW |
99 | if no other NTP server information is known. When the empty |
100 | string is assigned, the list of NTP servers is reset, | |
101 | and all assignments prior to this one will have no effect. | |
102 | If this option is not given, a compiled-in list of NTP servers | |
103 | is used instead.</para></listitem> | |
798d3a52 ZJS |
104 | </varlistentry> |
105 | ||
f907cc16 YW |
106 | <varlistentry> |
107 | <term><varname>RootDistanceMaxSec=</varname></term> | |
a4465d0d | 108 | <listitem><para>Maximum acceptable root distance. Takes a time value (in seconds). |
f907cc16 YW |
109 | Defaults to 5 seconds.</para></listitem> |
110 | </varlistentry> | |
111 | ||
a4465d0d YW |
112 | <varlistentry> |
113 | <term><varname>PollIntervalMinSec=</varname></term> | |
114 | <term><varname>PollIntervalMaxSec=</varname></term> | |
115 | <listitem><para>The minimum and maximum poll intervals for NTP messages. | |
116 | Each setting takes a time value (in seconds). | |
117 | <varname>PollIntervalMinSec=</varname> must not be smaller than 16 seconds. | |
118 | <varname>PollIntervalMaxSec=</varname> must be larger than <varname>PollIntervalMinSec=</varname>. | |
119 | <varname>PollIntervalMinSec=</varname> defaults to 32 seconds, and | |
120 | <varname>PollIntervalMaxSec=</varname> defaults to 2048 seconds.</para></listitem> | |
121 | </varlistentry> | |
122 | ||
798d3a52 ZJS |
123 | </variablelist> |
124 | </refsect1> | |
125 | ||
126 | <refsect1> | |
127 | <title>See Also</title> | |
128 | <para> | |
129 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
130 | <citerefentry><refentrytitle>systemd-timesyncd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
131 | <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> | |
132 | </para> | |
133 | </refsect1> | |
874ff7bf LP |
134 | |
135 | </refentry> |