Advanced NTP client and server
Find a file
2011-01-27 13:05:26 +01:00
contrib Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
examples Update documentation a bit more 2009-12-04 13:12:38 +01:00
.gitignore Add a .gitignore file 2006-01-29 23:29:01 +00:00
acquire.c Don't leak descriptors to sendmail 2011-01-18 18:07:46 +01:00
acquire.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
addressing.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
addrfilt.c Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
addrfilt.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
broadcast.c Add small randomness to spacing between samples for one server 2010-12-09 16:06:42 +01:00
broadcast.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
candm.h Add outlyer source status to cmdmon protocol 2011-01-25 17:40:46 +01:00
chrony.1 Update documentation a bit more 2009-12-04 13:12:38 +01:00
chrony.conf.5 Update documentation a bit more 2009-12-04 13:12:38 +01:00
chrony.lsm Replaced references to sunsite with references to tuxfamily. 2009-10-29 16:14:39 -05:00
chrony.spec.sample Fix for chrony.spec on SuSE (Paul Elliot) 2006-01-19 21:37:13 +00:00
chrony.texi Make importance of stratum in source selection configurable 2011-01-25 17:40:46 +01:00
chrony_timex.h Add nanosecond slewing to Linux driver 2010-08-06 11:50:35 +02:00
chronyc.1 Add -m option to allow multiple commands on command line 2010-10-04 15:53:35 +02:00
chronyd.8 Add -n option to allow using syslog without forking 2010-08-19 17:21:11 +02:00
client.c Update copyright 2011-01-27 13:05:26 +01:00
clientlog.c Add option to limit clientlog memory 2009-11-25 14:37:36 +01:00
clientlog.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
cmdmon.c Update copyright 2011-01-27 13:05:26 +01:00
cmdmon.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
cmdparse.c Add test for ratio of increase in delay to stddev 2010-12-07 16:47:57 +01:00
cmdparse.h Add test for ratio of increase in delay to stddev 2010-12-07 16:47:57 +01:00
conf.c Update copyright 2011-01-27 13:05:26 +01:00
conf.h Make importance of stratum in source selection configurable 2011-01-25 17:40:46 +01:00
configure Run configure tests with LDFLAGS 2010-08-17 12:31:03 +02:00
COPYING Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
faq.txt Edited faq.txt to match the version on the Website. 2009-12-10 07:55:02 -06:00
faqgen.pl Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
getdate.c Regenerate getdate.c 2009-11-27 12:27:11 +01:00
getdate.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
getdate.y Include getdate.y to allow regenerating getdate.c 2009-11-27 12:25:36 +01:00
INSTALL Update documentation a bit more 2009-12-04 13:12:38 +01:00
io_linux.h Add s390 and powerpc definitions to io_linux.h 2009-11-26 14:59:11 +01:00
keys.c Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
keys.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
local.c Update copyright 2011-01-27 13:05:26 +01:00
local.h Include maximum clock frequency error in our dispersion 2010-12-03 13:15:14 +01:00
localp.h Return actual frequency in drv_set_freq functions 2010-04-27 14:35:27 +02:00
logging.c Update copyright 2011-01-27 13:05:26 +01:00
logging.h Add -n option to allow using syslog without forking 2010-08-19 17:21:11 +02:00
main.c Fix reloading sample histories with refclocks 2010-08-25 18:10:35 +02:00
main.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
make_release Remove hyphen from git commands in make_release 2009-12-01 17:17:18 +01:00
Makefile.in Add temperature compensation 2010-04-27 14:35:11 +02:00
manual.c Make use of UTI_AdjustTimeval in slew handlers 2010-05-07 18:52:05 +02:00
manual.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
md5.c Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
md5.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
memory.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
mkdirpp.c Fix possible memory leak in mkdir_and_parents() 2010-04-13 15:16:49 +02:00
mkdirpp.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
mkversion First stab at moving build_kit to release versioning based on tla 2006-01-19 21:37:14 +00:00
nameserv.c Update copyright 2011-01-27 13:05:26 +01:00
nameserv.h Don't retry resolving in DNS_Name2IPAddress 2010-04-27 14:35:28 +02:00
NEWS Update NEWS 2010-02-04 13:07:19 +01:00
ntp.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
ntp_core.c Update copyright 2011-01-27 13:05:26 +01:00
ntp_core.h Add maxdelaydevratio command 2010-12-07 16:47:57 +01:00
ntp_io.c Don't leak descriptors to sendmail 2011-01-18 18:07:46 +01:00
ntp_io.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
ntp_sources.c Update copyright 2011-01-27 13:05:26 +01:00
ntp_sources.h Add maxdelaydevratio command 2010-12-07 16:47:57 +01:00
pktlength.c Add reselect command 2010-12-07 16:47:58 +01:00
pktlength.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
README Update documentation a bit more 2009-12-04 13:12:38 +01:00
refclock.c Update copyright 2011-01-27 13:05:26 +01:00
refclock.h Add prefer and noselect options 2010-08-25 18:32:40 +02:00
refclock_pps.c Don't leak descriptors to sendmail 2011-01-18 18:07:46 +01:00
refclock_shm.c Allow to set only permission bits with perm option 2010-01-29 09:50:51 +01:00
refclock_sock.c Don't leak descriptors to sendmail 2011-01-18 18:07:46 +01:00
reference.c Update copyright 2011-01-27 13:05:26 +01:00
reference.h Refactor file logging 2010-04-13 15:16:41 +02:00
regress.c Update copyright 2011-01-27 13:05:26 +01:00
regress.h Extend runs test 2010-08-17 16:40:25 +02:00
reports.h Add outlyer source status to cmdmon protocol 2011-01-25 17:40:46 +01:00
rtc.c Add rtcsync directive 2010-05-14 14:41:11 +02:00
rtc.h Refactor file logging 2010-04-13 15:16:41 +02:00
rtc_linux.c Don't leak descriptors to sendmail 2011-01-18 18:07:46 +01:00
rtc_linux.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
sched.c Update copyright 2011-01-27 13:05:26 +01:00
sched.h Use enum for scheduler timeout classes 2010-12-17 15:38:23 +01:00
sources.c Update copyright 2011-01-27 13:05:26 +01:00
sources.h Don't update local reference unnecessarily 2010-12-17 13:22:57 +01:00
sourcestats.c Update copyright 2011-01-27 13:05:26 +01:00
sourcestats.h Allow selecting source only when last regression was successful 2010-12-15 17:48:30 +01:00
srcparams.h Add test for ratio of increase in delay to stddev 2010-12-07 16:47:57 +01:00
strerror.c Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
sys.c Clean up system options code 2009-11-25 14:37:41 +01:00
sys.h Clean up system options code 2009-11-25 14:37:41 +01:00
sys_linux.c Update copyright 2011-01-27 13:05:26 +01:00
sys_linux.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
sys_netbsd.c Don't use timezone parameter in gettimeofday and settimeofday calls 2010-08-12 14:43:26 +02:00
sys_netbsd.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
sys_solaris.c Don't use timezone parameter in gettimeofday and settimeofday calls 2010-08-12 14:43:26 +02:00
sys_solaris.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
sys_sunos.c Don't use timezone parameter in gettimeofday and settimeofday calls 2010-08-12 14:43:26 +02:00
sys_sunos.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
sysincl.h Update COPYING and FSF address 2009-10-28 17:53:33 +01:00
tempcomp.c Update copyright 2011-01-27 13:05:26 +01:00
tempcomp.h Update copyright 2011-01-27 13:05:26 +01:00
util.c Don't leak descriptors to sendmail 2011-01-18 18:07:46 +01:00
util.h Don't leak descriptors to sendmail 2011-01-18 18:07:46 +01:00
version.txt Fix version.txt to remove compile warning 2006-04-15 00:27:07 +01:00
wrap_adjtimex.c Update copyright 2011-01-27 13:05:26 +01:00
wrap_adjtimex.h Add nanosecond slewing to Linux driver 2010-08-06 11:50:35 +02:00

This is the README for chrony.

What is chrony?
===============
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.  This does most of the work.

chronyc is a command-line interface program which can be used to
monitor chronyd's performance and to change various operating
parateters whilst it is running.

chronyd's main function is to obtain measurements of the true (UTC)
time from one of several sources, and correct the system clock
accordingly.  It also works out the rate at which the system clock
gains or loses time and uses this information to keep it accurate
between measurements from the reference.

The reference time can be derived from Network Time Protocol (NTP)
servers, reference clocks, or wristwatch-and-keyboard (via chronyc).
The main source of information about the Network Time Protocol is
http://www.eecis.udel.edu/~ntp.

It is designed so that it can work on computers which only have
intermittent access to reference sources, for example computers which
use a dial-up account to access the Internet.  Of course, it will work
on computers with permanent connections too.

In addition, on Linux it can monitor the system's real time clock
performance, so the system can maintain accurate time even across
reboots.

Typical accuracies available between 2 machines are

On an ethernet LAN : 100-200 microseconds, often much better
On a V32bis dial-up modem connection : 10's of milliseconds (from one
session to the next)

With a good reference clock the accuracy can reach one microsecond.

chronyd can also operate as an RFC1305-compatible NTP server and peer.


What will chrony run on?
========================

Chrony can be successfully built and run on

1. Linux v1.2.13, v2.0.x, 2.1.x (partially), 2.2.x, 2.3.x, 2.4.x, 2.6.x.
Real time clock support is limited to 2.0.32 onwards and to 2.2, 2.3,
2.4 and 2.6 series only.  i386, x86_64, PowerPC are known to be
supported.

2. Solaris 2.5/2.5.1/2.6/2.7/2.8 (various platforms) 

3. SunOS 4.1.4 (Sparc 2 and Sparc 20)

4. BSD/386 v1.1 has been reported to work using the SunOS 4.1 driver.

5. NetBSD.

Any other system will require a porting exercise.  You would need to
start from one of the existing system-specific drivers and look into
the quirks of certain system calls and the kernel on your target
system.  (This is described in the manual).

How do I set it up?
===================

The file INSTALL gives instructions.  On supported systems the
compilation process should be automatic.

You will need an ANSI C compiler -- gcc is recommended.

The manual (in texinfo and text formats) describes how to set the
software up for the less straightforward cases.

What documentation is there?
============================

A manual is supplied in Texinfo format (chrony.texi) and
ready-formatted plain text (chrony.txt) in the distribution.

There is also information available on the chrony web pages, accessible
through the URL 

    http://chrony.tuxfamily.org/

What can chrony not do?
=======================

Compared to the `reference' RFC1305 implementation xntpd, chronyd does
not support broadcast modes.

Where are new versions announced?
=================================

There is a low volume mailing list where new versions and other
important news relating to chrony is announced.  You can join this list
by sending mail with the subject "subscribe" to

chrony-announce-request@chrony.tuxfamily.org

These messages will be copied to chrony-users (see below).  New versions
are announced also on Freshmeat (http://freshmeat.net/).

How can I get support for chrony?
and where can I discuss new features, possible bugs etc?
========================================================

There are 3 mailing lists relating to chrony.  chrony-announce was
mentioned above.  chrony-users is a users' discussion list, e.g. for
general questions and answers about using chrony.  chrony-dev is a more
technical list, e.g. for discussing how new features should be
implemented, exchange of information between developers etc.  To
subscribe to either of these lists, send a message with the subject
"subscribe" to

chrony-users-request@chrony.tuxfamily.org
or
chrony-dev-request@chrony.tuxfamily.org

as applicable.


Author
======

Richard P. Curnow <rc@rc0.org.uk>


Maintainers
===========

John Hasler <john@dhh.gt.org>
Miroslav Lichvar <mlichvar@redhat.com>


Acknowledgements
================

The following people have provided patches and other major contributions
to the program :

Andrew Bishop <amb@gedanken.demon.co.uk>
    Fixes for bugs in logging when in daemon mode
    Fixes for compiler warnings
    Robustness improvements for drift file
    Improve installation (directory checking etc)
    Entries in contrib directory
    Improvements to 'sources' and 'sourcestats' output from chronyc
    Improvements to documentation
    Investigation of required dosynctodr behaviour for various Solaris
      versions.

Stephan I. Boettcher <stephan@nevis1.columbia.edu>
    Entries in contrib directory

Erik Bryer <ebryer@spots.ab.ca>
    Entries in contrib directory

Juliusz Chroboczek <jch@pps.jussieu.fr>
    Fix install rule in Makefile if chronyd file is in use.

Paul Elliott <pelliott@io.com>
    DNSchrony (in contrib directory), a tool for handling NTP servers
    with variable IP addresses.

Mike Fleetwood <mike@rockover.demon.co.uk>
    Fixes for compiler warnings

Alexander Gretencord <arutha@gmx.de>
    Changes to installation directory system to make it easier for
    package builders.

Walter Haidinger <walter.haidinger@gmx.at>
    Providing me with login access to a Linux installation where v1.12
    wouldn't compile, so I could develop the fixes for v1.13.  Also, for
    providing the disc space so I can keep an independent backup of the
    sources.

Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
    Port to NetBSD

John Hasler <john@dhh.gt.org>
    Changes to support 64 bit machines (i.e. those where
      sizeof(unsigned long) > 4)
    Bug fix to initstepslew directive
    Fix to remove potential buffer overrun errors.
    Memory locking and real-time scheduler support
    Fix fault where chronyd enters an endless loop

Liam Hatton <me@liamhatton.com>
    Advice on configuring for Linux on PPC

Jachym Holecek <jakym@volny.cz>
    Patch to make Linux real time clock work with devfs

Jim Knoble <jmknoble@pobox.com>
    Fixes for compiler warnings

Antti Jrvinen <costello@iki.fi>
    Advice on configuring for BSD/386

Miroslav Lichvar <mlichvar@redhat.com>
    Reference clock support
    IPv6 support
    Linux capabilities support
    Leap second support
    Various bug fixes and improvements

Victor Moroz <vim@prv.adlum.ru>
    Patch to support Linux with HZ!=100

Kalle Olavi Niemitalo  <tosi@stekt.oulu.fi>
    acquisitionport support

Frank Otto <sandwichmacher@web.de>
    Handling arbitrary HZ values

Andreas Piesk <apiesk@virbus.de>
    Patch to make chronyc use the readline library if available

Timo Teras <timo.teras@iki.fi>
    Patch to reply correctly on multihomed hosts

Wolfgang Weisselberg <weissel@netcologne.de>
    Entries in contrib directory

Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
    Many robustness and security improvements
    
Ulrich Windl <ulrich.windl@rz.uni-regensburg.de> for the
    Providing me with information about the Linux 2.2 kernel
    functionality compared to 2.0.

Doug Woodward <dougw@whistler.com>
    Advice on configuring for Solaris 2.8 on x86

Many other people have contributed bug reports and suggestions.  I'm
sorry I can't identify all of you individually.

vim:tw=72