fix chrony config
This commit is contained in:
parent
259e3e23c0
commit
a259ce14a0
@ -1,10 +1,10 @@
|
|||||||
# Use public servers from the pool.ntp.org project.
|
# Use public servers from the pool.ntp.org project.
|
||||||
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
|
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
|
||||||
#pool 2.pool.ntp.org iburst
|
#pool 2.pool.ntp.org iburst
|
||||||
server 0.ch.pool.ntp.org
|
server 0.ch.pool.ntp.org iburst
|
||||||
server 1.ch.pool.ntp.org
|
server 1.ch.pool.ntp.org iburst
|
||||||
server 2.ch.pool.ntp.org
|
server 2.ch.pool.ntp.org iburst
|
||||||
server 3.ch.pool.ntp.org
|
server 3.ch.pool.ntp.org iburst
|
||||||
|
|
||||||
# Record the rate at which the system clock gains/losses time.
|
# Record the rate at which the system clock gains/losses time.
|
||||||
driftfile /var/lib/chrony/drift
|
driftfile /var/lib/chrony/drift
|
||||||
@ -25,6 +25,7 @@ rtcsync
|
|||||||
|
|
||||||
# Allow NTP client access from local network.
|
# Allow NTP client access from local network.
|
||||||
#allow 192.168.0.0/16
|
#allow 192.168.0.0/16
|
||||||
|
allow 192.168.1.0/24
|
||||||
|
|
||||||
# Serve time even if not synchronized to a time source.
|
# Serve time even if not synchronized to a time source.
|
||||||
#local stratum 10
|
#local stratum 10
|
||||||
@ -39,4 +40,4 @@ leapsectz right/UTC
|
|||||||
logdir /var/log/chrony
|
logdir /var/log/chrony
|
||||||
|
|
||||||
# Select which information is logged.
|
# Select which information is logged.
|
||||||
#log measurements statistics tracking
|
log measurements statistics tracking rtc
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user