summaryrefslogtreecommitdiff
path: root/man/timesyncd.conf.html
blob: 0e6a9511de21479b7c5890588c97a2dd42dd45b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>timesyncd.conf</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><style>
    a.headerlink {
      color: #c60f0f;
      font-size: 0.8em;
      padding: 0 4px 0 4px;
      text-decoration: none;
      visibility: hidden;
    }

    a.headerlink:hover {
      background-color: #c60f0f;
      color: white;
    }

    h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink {
      visibility: visible;
    }
  </style><a href="index.html">Index </a>·
  <a href="systemd.directives.html">Directives </a>·
  <a href="../python-systemd/index.html">Python </a>·

  <span style="float:right">systemd 221</span><hr><div class="refentry"><a name="timesyncd.conf"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>timesyncd.conf, timesyncd.conf.d — Network Time Synchronization configuration files</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/systemd/timesyncd.conf</code></p><p><code class="filename">/etc/systemd/timesyncd.conf.d/*.conf</code></p><p><code class="filename">/run/systemd/timesyncd.conf.d/*.conf</code></p><p><code class="filename">/usr/lib/systemd/timesyncd.conf.d/*.conf</code></p></div><div class="refsect1"><a name="idm47156277177888"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description">¶</a></h2><p>These configuration files control NTP network time
    synchronization.</p></div><div class="refsection"><a name="main-conf"></a><h2>Configuration Directories and Precedence</h2><p>Default configuration is defined during compilation, so a
    configuration file is only needed when it is necessary to deviate
    from those defaults. By default the configuration file in
    <code class="filename">/etc/systemd/</code> contains commented out entries
    showing the defaults as a guide to the administrator. This file
    can be edited to create local overrides.
    </p><p>When packages need to customize the configuration, they can
    install configuration snippets in
    <code class="filename">/usr/lib/systemd/*.conf.d/</code>. Files in
    <code class="filename">/etc/</code> are reserved for the local
    administrator, who may use this logic to override the
    configuration files installed by vendor packages. The main
    configuration file is read before any of the configuration
    directories, and has the lowest precedence; entries in a file in
    any configuration directory override entries in the single
    configuration file. Files in the
    <code class="filename">*.conf.d/</code> configuration subdirectories
    are sorted by their filename in lexicographic order, regardless of
    which of the subdirectories they reside in. If multiple files
    specify the same option, the entry in the file with the
    lexicographically latest name takes precedence.  It is recommended
    to prefix all filenames in those subdirectories with a two-digit
    number and a dash, to simplify the ordering of the files.</p><p>To disable a configuration file supplied by the vendor, the
    recommended way is to place a symlink to
    <code class="filename">/dev/null</code> in the configuration directory in
    <code class="filename">/etc/</code>, with the same filename as the vendor
    configuration file.</p></div><div class="refsect1"><a name="idm47156272274416"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options">¶</a></h2><div class="variablelist"><dl class="variablelist"><dt id="NTP="><span class="term"><code class="varname">NTP=</code></span><a class="headerlink" title="Permalink to this term" href="#NTP=">¶</a></dt><dd><p>A space separated list of NTP server host
        names or IP addresses. During runtime this list is combined
        with any per-interface NTP servers acquired from
        <a href="systemd-networkd.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-networkd.service</span>(8)</span></a>.
        systemd-timesyncd will contact all configured system or
        per-interface servers in turn until one is found that
        responds. This setting defaults to an empty
        list.</p></dd><dt id="FallbackNTP="><span class="term"><code class="varname">FallbackNTP=</code></span><a class="headerlink" title="Permalink to this term" href="#FallbackNTP=">¶</a></dt><dd><p>A space separated list of NTP server host
        names or IP addresses to be used as the fallback NTP servers.
        Any per-interface NTP servers obtained from
        <a href="systemd-networkd.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-networkd.service</span>(8)</span></a>
        take precedence over this setting, as do any servers set via
        <code class="varname">NTP=</code> above. This setting is hence only used
        if no other NTP server information is known. If this option is
        not given, a compiled-in list of NTP servers is used
        instead.</p></dd></dl></div></div><div class="refsect1"><a name="idm47156272267488"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also">¶</a></h2><p>
      <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
      <a href="systemd-timesyncd.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-timesyncd.service</span>(8)</span></a>,
      <a href="systemd-networkd.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-networkd.service</span>(8)</span></a>
      </p></div></div></body></html>