FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
os:linux:set:deamon:etc_chrony.conf.html [2018/02/18 00:01] kurihara created |
os:linux:set:deamon:etc_chrony.conf.html [2018/02/18 00:16] (current) kurihara |
||
---|---|---|---|
Line 1: | Line 1: | ||
[[os: | [[os: | ||
- | ====== / | + | ====== /etc/ |
\\ | \\ | ||
Line 6: | Line 6: | ||
\\ | \\ | ||
- | ===== My / | + | ===== My /etc/ |
<sxh bash toolbar: | <sxh bash toolbar: | ||
# | # | ||
- | # / | + | # / |
+ | # / | ||
# -rw-r--r-- | # -rw-r--r-- | ||
# | # | ||
- | # man 5 sshd_config | + | # # Change date with Step |
+ | # chronyc -a makestep | ||
# | # | ||
# NTP Server | # NTP Server | ||
+ | # poll 4 = 2 * 2 * 2 * 2 = 16 sec | ||
server x.x.x.x iburst minpoll 4 maxpoll 4 prefer | server x.x.x.x iburst minpoll 4 maxpoll 4 prefer | ||
server x.x.x.x iburst minpoll 4 maxpoll 4 | server x.x.x.x iburst minpoll 4 maxpoll 4 | ||
driftfile / | driftfile / | ||
+ | |||
+ | # Step Mode Configuration | ||
makestep 1.0 3 | makestep 1.0 3 | ||
+ | |||
+ | # Enable kernel synchronization of the real-time clock (RTC). | ||
rtcsync | rtcsync | ||
+ | |||
logdir / | logdir / | ||
</ | </ | ||
Line 72: | Line 80: | ||
\\ | \\ | ||
- | ===== Ubuntu 16.0.4 Default / | + | ===== Ubuntu 16.0.4 Default /etc/chrony/chrony.conf ===== |
<sxh bash toolbar: | <sxh bash toolbar: | ||
+ | # This the default chrony.conf file for the Debian chrony package. | ||
+ | # editing this file use the command ' | ||
+ | # your changes take effect. | ||
+ | # See www.pool.ntp.org for an explanation of these servers. | ||
+ | # consider joining the project if possible. | ||
+ | # use these servers I suggest that you try your ISP's nameservers. | ||
+ | # the servers ' | ||
+ | # is down. Scripts in / | ||
+ | # commands to switch it on when a dialup link comes up and off when it goes | ||
+ | # down. Code in / | ||
+ | # the link is up at boot time and set the online status accordingly. | ||
+ | # you have an always-on connection such as cable omit the ' | ||
+ | # directive and chronyd will default to online. | ||
+ | # | ||
+ | # Note that if Chrony tries to go " | ||
+ | # fails they will be discarded. | ||
+ | # better to use IP numbers than host names. | ||
+ | |||
+ | pool 2.debian.pool.ntp.org offline iburst | ||
+ | |||
+ | # Look here for the admin password needed for chronyc. | ||
+ | # password is generated by a random process at install time. You may | ||
+ | # change it if you wish. | ||
+ | |||
+ | keyfile / | ||
+ | |||
+ | # This directive sets the key ID used for authenticating user commands via the | ||
+ | # ' | ||
+ | |||
+ | commandkey 1 | ||
+ | |||
+ | # I moved the driftfile to / | ||
+ | # filesystem standard. | ||
+ | |||
+ | driftfile / | ||
+ | |||
+ | # Comment this line out to turn off logging. | ||
+ | |||
+ | log tracking measurements statistics | ||
+ | logdir / | ||
+ | |||
+ | # Stop bad estimates upsetting machine clock. | ||
+ | |||
+ | maxupdateskew 100.0 | ||
+ | |||
+ | # Dump measurements when daemon exits. | ||
+ | |||
+ | dumponexit | ||
+ | |||
+ | # Specify directory for dumping measurements. | ||
+ | |||
+ | dumpdir / | ||
+ | |||
+ | # This directive lets ' | ||
+ | # NTP server. | ||
+ | |||
+ | #local stratum 10 | ||
+ | |||
+ | # This directive designates subnets (or nodes) from which NTP clients are allowed | ||
+ | # to access to ' | ||
+ | |||
+ | #allow foo.example.net | ||
+ | #allow 10/8 | ||
+ | #allow 0/0 (allow access by any IPv4 node) | ||
+ | #allow ::/0 (allow access by any IPv6 node) | ||
+ | |||
+ | # This directive forces `chronyd' | ||
+ | # makes a system clock adjustment larger than a threshold value in seconds. | ||
+ | |||
+ | logchange 0.5 | ||
+ | |||
+ | # This directive defines an email address to which mail should be sent | ||
+ | # if chronyd applies a correction exceeding a particular threshold to the | ||
+ | # system clock. | ||
+ | |||
+ | # mailonchange root@localhost 0.5 | ||
+ | |||
+ | # This directive tells ' | ||
+ | # real-time clock keeps local time or UTC. It overrides the ' | ||
+ | |||
+ | hwclockfile / | ||
+ | |||
+ | # This directive enables kernel synchronisation (every 11 minutes) of the | ||
+ | # real-time clock. Note that it can’t be used along with the ' | ||
+ | |||
+ | rtcsync | ||
</ | </ | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.