Difference between pages "Package:Chrony" and "Template:Subarch"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
m (Threesixes moved page Set Up Chrony For Accurate System Time to Package:Chrony: 4 the chaos)
 
 
Line 1: Line 1:
=== Accurate System Time (NTP) ===
<includeonly>{{#widget:AddThis}}{{#if:{{{title|}}}|
{{DISPLAYTITLE:Download - {{{title}}}}}
|
{{DISPLAYTITLE:Download - {{{subarch}}}}}
}}'''This page lists CPU-optimized builds of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]].'''


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.
{{{Description|}}}
 
{{#seo:
The recommended NTP client/server is '''{{Package|net-misc/chrony}}'''.
|title={{#if:{{{title|}}}|Download - {{{title}}}|Download - {{{subarch}}}}}
 
|keywords=funtoo,linux,build,subarch,{{{subarch}}},{{{title}}}
<console>
|description=This page lists CPU-optimized builds of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]].
###i## emerge chrony
}}
###i## rc-update add chronyd default
{{#set:CPU Family={{{CPU Family|}}}|subarch={{{subarch|}}}|CHOST={{{CHOST|}}}|CFLAGS={{{CFLAGS|}}}|USE={{{USE|}}}|CPU Features={{{CPU Features|}}}|Description={{{Description|}}}|title={{{title|}}}}}
</console>
=== Optimizations ===
 
__NOTOC__
Use something like the following for your <code>/etc/chrony/chrony.conf</code>:
{{TableStart}}
 
<tr><td>CHOST</td><td><code>{{{CHOST|}}}</code></td></tr>
<pre>
<tr><td>CFLAGS</td><td><code>{{{CFLAGS|}}}</code></td></tr>
server time.apple.com
<tr><td>USE (see [[CPU_FLAGS]] for more info)</td><td>{{#if:{{{USE|}}}|<code>{{{USE}}}</code>|(none)}}</td></tr>
maxupdateskew 100
{{TableEnd}}{{#vardefine:subarch|{{{subarch|}}}}}{{#get_web_data:url=http://build.funtoo.org/index.xml|format=xml|use xpath|data=builds=/subarches/subarch[@name='{{{subarch|}}}']/@builds}}{{#vardefine:builds|{{#external_value:builds}}}}
driftfile /etc/chrony/chrony.drift
=== Download ===
keyfile /etc/chrony/chrony.keys
{{#if:{{#var:builds}}|This section lists the Funtoo Linux builds currently available for download for '''{{{subarch}}}'''. A full list of Funtoo Linux builds can be found on the [[Subarches]] page.
commandkey 1
{{table|1=
dumponexit
<tr><th class="active">Build</th><th class="active">Variant</th><th class="active">Latest Build</th><th class="active">Download</th><th class="active">Browse Mirror</th></tr>{{#arraymaptemplate:{{#var:builds}}|DisplayBuilds|,|}}}}|No downloadable stage builds are currently available for this sub-architecture.}}
dumpdir /var/log/chrony
{{Important|Do you want a particular build of Funtoo Linux but do not see it here? Let us know what you need, and we will likely add it for you. [https://bugs.funtoo.org Create a bug report] requesting the build you need. To see what options there are, see our [[Corei7|Intel Core i7]] subarch page, which has a lot of builds listed.}}
initstepslew 10 time.apple.com
[[Category:Subarches]]
logdir /var/log/chrony
__NOEDITSECTION__
log measurements statistics tracking
=== Detailed Description ===
logchange 0.5
</includeonly>
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>
###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>:
 
<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]]

Revision as of 00:03, March 29, 2015