1 | # This is the default chrony.conf file adapted from Debian |
---|
2 | |
---|
3 | # See www.pool.ntp.org for an explanation of these servers. Please |
---|
4 | # consider joining the project if possible. If you can't or don't want to |
---|
5 | # use these servers I suggest that you try your ISP's nameservers. We mark |
---|
6 | # the servers 'offline' so that chronyd won't try to connect when the link |
---|
7 | # is down. |
---|
8 | # |
---|
9 | # A Helper application, chrony-netchanged, monitors the network state and |
---|
10 | # checks the reachability of the first configured server found in this |
---|
11 | # file. It invokes the script @PREFIX@/etc/chrony/chrony-netchange |
---|
12 | # which uses chronyc commands to switch chronyd on when an internet link |
---|
13 | # comes up and off when it goes down. |
---|
14 | # |
---|
15 | # Note that if Chrony tries to go 'online' and dns lookup of the servers |
---|
16 | # fails they will be discarded. Thus under some circumstances it is |
---|
17 | # better to use IP numbers than host names. |
---|
18 | |
---|
19 | pool pool.ntp.org offline |
---|
20 | |
---|
21 | # The driftfile |
---|
22 | |
---|
23 | driftfile @PREFIX@/var/lib/chrony/chrony.drift |
---|
24 | |
---|
25 | # Comment these lines out to turn off logging. |
---|
26 | |
---|
27 | log tracking measurements statistics |
---|
28 | logdir @PREFIX@/var/log/chrony |
---|
29 | |
---|
30 | # Step system clock if the adjustment is larger than 1.0 seconds, |
---|
31 | # but only in the first three clock updates. |
---|
32 | |
---|
33 | makestep 1.0 3 |
---|
34 | |
---|
35 | # Stop bad estimates upsetting machine clock. |
---|
36 | |
---|
37 | maxupdateskew 100.0 |
---|
38 | |
---|
39 | # Dump measurements when daemon exits. |
---|
40 | |
---|
41 | dumponexit |
---|
42 | |
---|
43 | # Specify directory for dumping measurements. |
---|
44 | |
---|
45 | dumpdir @PREFIX@/var/lib/chrony |
---|
46 | |
---|
47 | # This directive lets 'chronyd' to serve time even if unsynchronised to any |
---|
48 | # NTP server. |
---|
49 | |
---|
50 | #local stratum 10 |
---|
51 | |
---|
52 | # This directive designates subnets (or nodes) from which NTP clients are allowed |
---|
53 | # to access to 'chronyd'. |
---|
54 | |
---|
55 | #allow foo.example.net |
---|
56 | #allow 10/8 |
---|
57 | #allow 0/0 (allow access by any IPv4 node) |
---|
58 | #allow ::/0 (allow access by any IPv6 node) |
---|
59 | |
---|
60 | # This directive forces `chronyd' to send a message to syslog if it |
---|
61 | # makes a system clock adjustment larger than a threshold value in seconds. |
---|
62 | |
---|
63 | logchange 0.5 |
---|
64 | |
---|
65 | # This directive defines an email address to which mail should be sent |
---|
66 | # if chronyd applies a correction exceeding a particular threshold to the |
---|
67 | # system clock. |
---|
68 | |
---|
69 | # mailonchange root@localhost 0.5 |
---|