Difference between pages "Set Up Chrony For Accurate System Time" and "Template:Package"

From Funtoo
(Difference between pages)
Jump to: navigation, search
(Created page with "=== 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 ti...")
 
m
 
Line 1: Line 1:
=== Accurate System Time (NTP) ===
+
<includeonly>{{#if: {{{1|}}}|[https://github.com/funtoo/ports-2012/{{Trim|{{{1}}}}} {{Trim|{{{1}}}}}]|{{Error|Package|unnamed}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
+
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.
+
 
+
My favorite and recommended NTP client/server is <tt>net-misc/chrony</tt>. It is recommended for Funtoo systems:
+
 
+
<console>
+
# ##i##emerge chrony
+
# ##i##rc-update add chronyd default
+
</console>
+
 
+
Use something like the following for your <tt>/etc/chrony/chrony.conf</tt>:
+
 
+
<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 <tt>rc</tt> to start all new services:
+
 
+
<console>
+
# ##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 <tt>dhcpcd</tt>, add the following to <tt>/etc/conf.d/chronyd</tt>:
+
 
+
<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, <tt>chronyd</tt> will gradually correct your clock while the system runs.
+
[[Category:First Steps]]
+

Revision as of 23:22, 10 January 2014

[create]

Template-info.png Template Documentation

To use this template insert {{Template:Package}} into the page you wish to use it on and the page you wish.

This template does not have documentation, please add it