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