Difference between pages "Package:Chrony" and "Translations:Metro/134/en"

(Difference between pages)
m (update console templates & insert ebuild info)
 
(Importing a new version from external source)
 
Line 1: Line 1:
{{Ebuild
+
[[Category:HOWTO]]
|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.
+
[[Category:Metro]]
|CatPkg=net-misc/chrony
+
__TOC__
|Homepage=http://chrony.tuxfamily.org/
+
}}
+
 
+
=== 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|net-misc/chrony}}'''.
+
 
+
{{console|body=
+
###i## emerge chrony
+
###i## rc-update add chronyd default
+
}}
+
 
+
Use something like the following for your <code>/etc/chrony/chrony.conf</code>:
+
 
+
<pre>
+
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
+
</pre>
+
 
+
Chronyd can then be started immediately by running <code>rc</code> to start all new services:
+
 
+
{{console|body=
+
###i## 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 <code>dhcpcd</code>, add the following to <code>/etc/conf.d/chronyd</code>:
+
 
+
<pre>
+
rc_need=dhcpcd
+
</pre>
+
 
+
You should notice a marked improvement in your system clock's accuracy. If your system time was off by a significant amount, <code>chronyd</code> will gradually correct your clock while the system runs.
+
 
+
[[Category:System]]
+
[[Category:Official Documentation]]
+
 
+
{{EbuildFooter}}
+

Latest revision as of 17:33, July 12, 2015