Scroll to navigation

chrony.conf(5) Configuration Files chrony.conf(5)

NAME

chrony.conf - chronyd configuration file

SYNOPSIS

/etc/chrony.conf

DESCRIPTION

chrony is a pair of programs for maintaining the accuracy of computer clocks. chronyd is a background daemon program that can be started at boot time.

Assuming that you have found some servers, you need to set up a configuration file to run chrony. The (compiled-in) default location for this file is /etc/chrony.conf. Assuming that your NTP servers are called `foo.example.net', `bar.example.net' and `baz.example.net', your chrony.conf file could contain as a minimum


server foo.example.net
server bar.example.net
server baz.example.net

However, you will probably want to include some of the other directives described in detail in the documentation supplied with the distribution (chrony.txt and chrony.texi). The following directives may be particularly useful : `driftfile', `makestep', `rtcsync'. Also, the `iburst' server option is useful to speed up the initial synchronization. The smallest useful configuration file would look something like


server foo.example.net iburst
server bar.example.net iburst
server baz.example.net iburst
driftfile /var/lib/chrony/drift
makestep 10 3
rtcsync

When using a pool of NTP servers (one name is used for multiple servers which may change over time), it's better to specify them with the `pool' directive instead of multiple `server' directives. The configuration file could in this case look like


pool pool.ntp.org iburst
driftfile /var/lib/chrony/drift
makestep 10 3
rtcsync

SEE ALSO

chronyc(1), chronyd(8)

http://chrony.tuxfamily.org/

AUTHOR

Richard Curnow <rc@rc0.org.uk>

This man-page was written by Jan Schaumann <jschauma@netmeister.org> as part of "The Missing Man Pages Project". Please see http://www.netmeister.org/misc/m2p2/index.html for details.

The complete chrony documentation is supplied in texinfo format.

June 2015 chrony 2.1.1