Difference between revisions of "Package:Chrony"

m (Threesixes moved page Set Up Chrony For Accurate System Time to Package:Chrony: 4 the chaos)
m (update console templates & insert ebuild info)
Line 1: Line 1:
 +
{{Ebuild
 +
|Summary=Chrony is a pair of programs (chronyd and chronyc) which are used to maintain the accuracy of the system clock on a computer. chronyd has been specifically written to work well for systems which have only an intermittent (e.g. dial-up) connection to the network where the NTP servers are. It still works well in a "permanently connected" mode.
 +
|CatPkg=net-misc/chrony
 +
|Homepage=http://chrony.tuxfamily.org/
 +
}}
 +
 
=== Accurate System Time (NTP) ===
 
=== Accurate System Time (NTP) ===
  
Line 5: Line 11:
 
The recommended NTP client/server is '''{{Package|net-misc/chrony}}'''.
 
The recommended NTP client/server is '''{{Package|net-misc/chrony}}'''.
  
<console>
+
{{console|body=
 
###i## emerge chrony
 
###i## emerge chrony
 
###i## rc-update add chronyd default
 
###i## rc-update add chronyd default
</console>
+
}}
  
 
Use something like the following for your <code>/etc/chrony/chrony.conf</code>:
 
Use something like the following for your <code>/etc/chrony/chrony.conf</code>:
Line 33: Line 39:
 
Chronyd can then be started immediately by running <code>rc</code> to start all new services:
 
Chronyd can then be started immediately by running <code>rc</code> to start all new services:
  
<console>
+
{{console|body=
 
###i## rc
 
###i## rc
</console>
+
}}
  
 
Because Funtoo Linux starts network daemons without waiting for an Internet connection to become available, and because chrony will attempt to synchronize the clock over the Internet when it first starts, you must manually configure chronyd to be dependent on whatever method you use to enable your outbound network connectivity. For example, if using <code>dhcpcd</code>, add the following to <code>/etc/conf.d/chronyd</code>:
 
Because Funtoo Linux starts network daemons without waiting for an Internet connection to become available, and because chrony will attempt to synchronize the clock over the Internet when it first starts, you must manually configure chronyd to be dependent on whatever method you use to enable your outbound network connectivity. For example, if using <code>dhcpcd</code>, add the following to <code>/etc/conf.d/chronyd</code>:
Line 47: Line 53:
 
[[Category:System]]
 
[[Category:System]]
 
[[Category:Official Documentation]]
 
[[Category:Official Documentation]]
 +
 +
{{EbuildFooter}}

Revision as of 03:32, January 25, 2015

net-misc/chrony


Source Repository:Repository:Gentoo Portage Tree

http://chrony.tuxfamily.org/

Summary: Chrony is a pair of programs (chronyd and chronyc) which are used to maintain the accuracy of the system clock on a computer. chronyd has been specifically written to work well for systems which have only an intermittent (e.g. dial-up) connection to the network where the NTP servers are. It still works well in a "permanently connected" mode.

Use Flags

cmdmon
Support for command and monitoring
ntp
Support for the Network Time Protocol (NTP)
phc
Support for the PTP (Precision Time Protocol) Hardware Clock (PHC) interface
pps
Support for the Linux Pulse Per Second (PPS) interface
refclock
Support for reference clocks
rtc
Support for the Linux Real Time Clock interface
adns
Support for asynchronous DNS

News

Drobbins

Keychain 2.8.2 Released

Keychain 2.8.2, a maintenance and bug fix release, is now available.
2015-11-16 by Drobbins
Drobbins

Unfork Tree is Live!

The "unfork" tree is now merged into the main Funtoo Linux tree, and Funtoo Linux is now using shards for core packages, x11 (including media libraries), KDE, GNOME, python and perl.
2015-10-12 by Drobbins
Drobbins

OpenSSH 7 Disables DSA Keys By Default

Please be aware of this important change to avoid getting locked out of your Funtoo server.
2015-10-07 by Drobbins
More...

Chrony

Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Accurate System Time (NTP)

It's important that your Funtoo Linux system has an accurate clock. NTP (network time protocol) can ensure your clock is accurate at all time.

The recommended NTP client/server is Package:Chrony.

# emerge chrony
# rc-update add chronyd default
Use something like the following for your /etc/chrony/chrony.conf:

server time.apple.com
maxupdateskew 100
driftfile /etc/chrony/chrony.drift
keyfile /etc/chrony/chrony.keys
commandkey 1
dumponexit
dumpdir /var/log/chrony
initstepslew 10 time.apple.com
logdir /var/log/chrony
log measurements statistics tracking
logchange 0.5
mailonchange me@emailprovider.com 0.5
rtcfile /etc/chrony/chrony.rtc
rtconutc
sched_priority 1
lock_all

Chronyd can then be started immediately by running rc to start all new services:

# rc
Because Funtoo Linux starts network daemons without waiting for an Internet connection to become available, and because chrony will attempt to synchronize the clock over the Internet when it first starts, you must manually configure chronyd to be dependent on whatever method you use to enable your outbound network connectivity. For example, if using dhcpcd, add the following to /etc/conf.d/chronyd:

rc_need=dhcpcd

You should notice a marked improvement in your system clock's accuracy. If your system time was off by a significant amount, chronyd will gradually correct your clock while the system runs.