FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


os:linux:set:deamon:etc_chrony.conf.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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:linux:set:index.html]] [[os:linux:set:index.html]]
-====== /etc/chrony.conf Example Configuration======+====== /etc/chrony.conf | /etc/chrony/chrony.conf Example Configuration======
  
 \\ \\
Line 6: Line 6:
 \\ \\
  
-===== My /etc/chrony.conf =====+===== My /etc/chrony.conf | /etc/chrony/chrony.conf =====
  
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 #=============================================================================== #===============================================================================
-# /etc/chrony.conf+# /etc/chrony.conf (CentOS) 
 +# /etc/chrony/chrony.conf (Ubuntu)
 # -rw-r--r--  root root # -rw-r--r--  root root
 # #
-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 /var/lib/chrony/drift driftfile /var/lib/chrony/drift
 +
 +# Step Mode Configuration
 makestep 1.0 3 makestep 1.0 3
 +
 +# Enable kernel synchronization of the real-time clock (RTC).
 rtcsync rtcsync
 +
 logdir /var/log/chrony logdir /var/log/chrony
 </sxh> </sxh>
Line 72: Line 80:
  
 \\ \\
-===== Ubuntu 16.0.4 Default /etc/chrony.con =====+===== Ubuntu 16.0.4 Default /etc/chrony/chrony.conf =====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 +# This the default chrony.conf file for the Debian chrony package.  After
 +# editing this file use the command 'invoke-rc.d chrony restart' to make
 +# your changes take effect.  John Hasler <jhasler@debian.org> 1998-2008
  
 +# See www.pool.ntp.org for an explanation of these servers.  Please
 +# consider joining the project if possible.  If you can't or don't want to
 +# use these servers I suggest that you try your ISP's nameservers.  We mark
 +# the servers 'offline' so that chronyd won't try to connect when the link
 +# is down.  Scripts in /etc/ppp/ip-up.d and /etc/ppp/ip-down.d use chronyc
 +# commands to switch it on when a dialup link comes up and off when it goes
 +# down.  Code in /etc/init.d/chrony attempts to determine whether or not
 +# the link is up at boot time and set the online status accordingly.  If
 +# you have an always-on connection such as cable omit the 'offline'
 +# directive and chronyd will default to online.
 +#
 +# Note that if Chrony tries to go "online" and dns lookup of the servers
 +# fails they will be discarded.  Thus under some circumstances it is
 +# 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.  The initial
 +# password is generated by a random process at install time.  You may
 +# change it if you wish.
 +
 +keyfile /etc/chrony/chrony.keys
 +
 +# This directive sets the key ID used for authenticating user commands via the
 +# 'chronyc' program at run time.
 +
 +commandkey 1
 +
 +# I moved the driftfile to /var/lib/chrony to comply with the Debian
 +# filesystem standard.
 +
 +driftfile /var/lib/chrony/chrony.drift
 +
 +# Comment this line out to turn off logging.
 +
 +log tracking measurements statistics
 +logdir /var/log/chrony
 +
 +# Stop bad estimates upsetting machine clock.
 +
 +maxupdateskew 100.0
 +
 +# Dump measurements when daemon exits.
 +
 +dumponexit
 +
 +# Specify directory for dumping measurements.
 +
 +dumpdir /var/lib/chrony
 +
 +# This directive lets 'chronyd' to serve time even if unsynchronised to any
 +# NTP server.
 +
 +#local stratum 10
 +
 +# This directive designates subnets (or nodes) from which NTP clients are allowed
 +# to access to 'chronyd'.
 +
 +#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' to send a message to syslog if it
 +# 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 'chronyd' to parse the 'adjtime' file to find out if the
 +# real-time clock keeps local time or UTC. It overrides the 'rtconutc' directive.
 +
 +hwclockfile /etc/adjtime
 +
 +# This directive enables kernel synchronisation (every 11 minutes) of the
 +# real-time clock. Note that it can’t be used along with the 'rtcfile' directive.
 +
 +rtcsync
 </sxh> </sxh>
  


os/linux/set/deamon/etc_chrony.conf.html.1518879690.txt.gz · Last modified: 2018/02/18 00:01 by kurihara