Advanced NTP client and server
Find a file
Miroslav Lichvar a7892a1a15 Always send timevals in cmdmon protocol in 64-bit format
This is to avoid incompatibility between 64/32-bit client/server.
While at it, convert all time values in the protocol to timeval
to avoid Y2K38 problem.
2009-10-13 16:15:23 +02:00
contrib Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
examples Add mlockall and SCHED_FIFO support 2009-02-10 18:02:28 +01:00
.gitignore Add a .gitignore file 2006-01-29 23:29:01 +00:00
acquire.c Add IPv6 support 2009-10-13 14:44:33 +02:00
acquire.h Add IPv6 support 2009-10-13 14:44:33 +02:00
addressing.h Add IPv6 support 2009-10-13 14:44:33 +02:00
addrfilt.c Add IPv6 support 2009-10-13 14:44:33 +02:00
addrfilt.h Add IPv6 support 2009-10-13 14:44:33 +02:00
broadcast.c Add IPv6 support 2009-10-13 14:44:33 +02:00
broadcast.h Add IPv6 support 2009-10-13 14:44:33 +02:00
candm.h Always send timevals in cmdmon protocol in 64-bit format 2009-10-13 16:15:23 +02:00
chrony.1 manpage improvements. 2006-01-29 23:23:52 +00:00
chrony.conf.5 manpage improvements. 2006-01-29 23:23:52 +00:00
chrony.lsm Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
chrony.spec.sample Fix for chrony.spec on SuSE (Paul Elliot) 2006-01-19 21:37:13 +00:00
chrony.texi Add mlockall and SCHED_FIFO support 2009-02-10 18:02:28 +01:00
chrony_timex.h Add support for ADJ_OFFSET_SS_READ mode 2009-05-20 17:43:09 +02:00
chronyc.1 manpage improvements. 2006-01-29 23:23:52 +00:00
chronyd.8 Add mlockall and SCHED_FIFO support 2009-02-10 18:02:28 +01:00
client.c Always send timevals in cmdmon protocol in 64-bit format 2009-10-13 16:15:23 +02:00
clientlog.c Add IPv6 support 2009-10-13 14:44:33 +02:00
clientlog.h Add IPv6 support 2009-10-13 14:44:33 +02:00
cmdmon.c Always send timevals in cmdmon protocol in 64-bit format 2009-10-13 16:15:23 +02:00
cmdmon.h Add IPv6 support 2009-10-13 14:44:33 +02:00
cmdparse.c Add IPv6 support 2009-10-13 14:44:33 +02:00
cmdparse.h Add IPv6 support 2009-10-13 14:44:33 +02:00
conf.c Add IPv6 support 2009-10-13 14:44:33 +02:00
conf.h Add IPv6 support 2009-10-13 14:44:33 +02:00
configure Add IPv6 support 2009-10-13 14:44:33 +02:00
COPYING Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
faq.txt Remove dependence on <linux/spinlock.h> 2006-01-19 21:37:13 +00:00
faqgen.pl Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
getdate.c Fix compiler warnings in getdate.c 2009-07-06 11:49:26 +02:00
getdate.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
INSTALL Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
io_linux.h Define io_linux.h constants for x86_64 2007-12-02 14:39:50 +00:00
keys.c Update copyright to 2003 2006-01-19 21:37:13 +00:00
keys.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
local.c Leap second support 2009-01-08 13:33:15 +01:00
local.h Leap second support 2009-01-08 13:33:15 +01:00
localp.h Leap second support 2009-01-08 13:33:15 +01:00
logging.c Don't copy util functions in client.c 2009-09-15 18:08:58 +02:00
logging.h Don't copy util functions in client.c 2009-09-15 18:08:58 +02:00
main.c Add support for reference clocks 2009-05-05 23:05:59 +02:00
main.h Remove volatile keyword from function declarations 2006-04-15 00:10:21 +01:00
make_release git archive's --prefix arg needs a trailing / 2007-06-27 23:57:03 +01:00
Makefile.in Don't copy util functions in client.c 2009-09-15 18:08:58 +02:00
manual.c Always send timevals in cmdmon protocol in 64-bit format 2009-10-13 16:15:23 +02:00
manual.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00: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 Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
mkdirpp.c Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
mkdirpp.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
mkversion First stab at moving build_kit to release versioning based on tla 2006-01-19 21:37:14 +00:00
nameserv.c Add IPv6 support 2009-10-13 14:44:33 +02:00
nameserv.h Add IPv6 support 2009-10-13 14:44:33 +02:00
NEWS Update NEWS for 1.23 2007-12-02 14:53:09 +00:00
ntp.h Update copyright to 2003 2006-01-19 21:37:13 +00:00
ntp_core.c Add IPv6 support 2009-10-13 14:44:33 +02:00
ntp_core.h Add IPv6 support 2009-10-13 14:44:33 +02:00
ntp_io.c Add IPv6 support 2009-10-13 14:44:33 +02:00
ntp_io.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
ntp_sources.c Add IPv6 support 2009-10-13 14:44:33 +02:00
ntp_sources.h Add IPv6 support 2009-10-13 14:44:33 +02:00
pktlength.c Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
pktlength.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
README Leap second support 2009-01-08 13:33:15 +01:00
refclock.c Add IPv6 support 2009-10-13 14:44:33 +02:00
refclock.h Switch refclock driver parameter to string 2009-08-19 15:29:52 +02:00
refclock_shm.c Switch refclock driver parameter to string 2009-08-19 15:29:52 +02:00
refclock_sock.c Add SOCK refclock driver 2009-08-19 15:39:06 +02:00
reference.c Make sure skew isn't 0.0 to avoid segfaults 2009-05-05 08:52:33 +02:00
reference.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
regress.c Update copyright to 2003 2006-01-19 21:37:13 +00:00
regress.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
reports.h Always send timevals in cmdmon protocol in 64-bit format 2009-10-13 16:15:23 +02:00
rtc.c Allow RTC support to be excluded at compile time. 2007-06-26 22:08:49 +01:00
rtc.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
rtc_linux.c Always send timevals in cmdmon protocol in 64-bit format 2009-10-13 16:15:23 +02:00
rtc_linux.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
sched.c Don't finalise from signal handler 2009-04-29 13:53:02 +02:00
sched.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
sources.c Add IPv6 support 2009-10-13 14:44:33 +02:00
sources.h Add IPv6 support 2009-10-13 14:44:33 +02:00
sourcestats.c Don't use uninitialized values 2009-10-13 14:43:47 +02:00
sourcestats.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
srcparams.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
strerror.c Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
sys.c Add mlockall and SCHED_FIFO support 2009-02-10 18:02:28 +01:00
sys.h Add mlockall and SCHED_FIFO support 2009-02-10 18:02:28 +01:00
sys_linux.c Don't forget to free capability object 2009-09-21 12:47:17 +02:00
sys_linux.h Fix memlockall patch 2009-02-11 18:01:23 +01:00
sys_netbsd.c Leap second support 2009-01-08 13:33:15 +01:00
sys_netbsd.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
sys_solaris.c Leap second support 2009-01-08 13:33:15 +01:00
sys_solaris.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
sys_sunos.c Leap second support 2009-01-08 13:33:15 +01:00
sys_sunos.h Equivalent to V1.19.99.1 2006-01-19 21:34:28 +00:00
sysincl.h Add IPv6 support 2009-10-13 14:44:33 +02:00
util.c Always send timevals in cmdmon protocol in 64-bit format 2009-10-13 16:15:23 +02:00
util.h Always send timevals in cmdmon protocol in 64-bit format 2009-10-13 16:15:23 +02:00
version.txt Fix version.txt to remove compile warning 2006-04-15 00:27:07 +01:00
wrap_adjtimex.c Add support for ADJ_OFFSET_SS_READ mode 2009-05-20 17:43:09 +02:00
wrap_adjtimex.h Add support for ADJ_OFFSET_SS_READ mode 2009-05-20 17:43:09 +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 either Network Time Protocol
(NTP) servers (preferred), 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, the Linux 2.0.x (for x >= 32), 2.2.x and 2.3.x versions
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)

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 (i386).
Real time clock support is limited to 2.0.32 onwards and to 2.2, 2.3 and
2.4 series only.  PowerPC is also 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.  Versions
2.7.2/2.7.2.2 are known to work.

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.sunsite.dk/

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

Compared to the `reference' RFC1305 implementation xntpd, chronyd does
not support hardware reference clocks or 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 to

chrony-announce-subscribe@sunsite.dk

These messages will be copied to chrony-users (see below).  I also try
to announce new versions on Freshmeat (http://freshmeat.net/).

I don't reliably announce via news any more - I don't tend to keep up
with news as I haven't enough time.

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 an empty message to

chrony-users-subscribe@sunsite.dk
or
chrony-dev-subscribe@sunsite.dk

as applicable.

Note that due to family commitments (a 3 year-old and a 1 year-old), I
no longer have the time to give to supporting chrony that I once had.
Therefore, the chrony-users list should be your main route for support,
rather than mailing me directly.  Even if it's me that responds to your
question on the list, at least *ALL* subscribers then benefit from
seeing the discussion, rather than me taking up lots of time on
supporting people on a one-to-one basis.  If you do mail me directly,
don't be surprised if I cc: the response to the mailing list.

But how can I contact the author if I need to?
==============================================

You can email me at <rc@rc0.org.uk>.  If that fails, you could try to
find me through one of the mailing lists.  It would be nice if:

- you include the word 'chrony' in the subject line (so my mail reader
can sort my mail by topic)

- you don't send complete log files, encoded binaries etc, without
editing such material down to just the relevant bits - a few tens of
lines at most.  (My dial-up connection handles large messages rather
slowly ...).

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.

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

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

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.

Version control information
===========================

$Header: /cvs/src/chrony/README,v 1.30 2003/09/21 23:11:06 richard Exp $

vim:tw=72