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

(Difference between pages)
m (update console templates & insert ebuild info)
 
 
Line 1: Line 1:
{{Ebuild
+
<includeonly>{{#widget:AddThis}}{{#if:{{{title|}}}|
|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.
+
{{DISPLAYTITLE:Download - {{{title}}}}}
|CatPkg=net-misc/chrony
+
|
|Homepage=http://chrony.tuxfamily.org/
+
{{DISPLAYTITLE:Download - {{{subarch}}}}}
}}
+
}}'''This page lists CPU-optimized builds of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]].'''
  
=== Accurate System Time (NTP) ===
+
{{{Description|}}}
 
+
{{#seo:
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.
+
|title={{#if:{{{title|}}}|Download - {{{title}}}|Download - {{{subarch}}}}}
 
+
|keywords=funtoo,linux,build,subarch,{{{subarch}}},{{{title}}}
The recommended NTP client/server is '''{{Package|net-misc/chrony}}'''.
+
|description=This page lists CPU-optimized builds of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]].
 
+
{{console|body=
+
###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|}}}}}
Use something like the following for your <code>/etc/chrony/chrony.conf</code>:
+
=== Optimizations ===
 
+
__NOTOC__
<pre>
+
{{TableStart}}
server time.apple.com
+
<tr><td>CHOST</td><td><code>{{{CHOST|}}}</code></td></tr>
maxupdateskew 100
+
<tr><td>CFLAGS</td><td><code>{{{CFLAGS|}}}</code></td></tr>
driftfile /etc/chrony/chrony.drift
+
<tr><td>USE (see [[CPU_FLAGS]] for more info)</td><td>{{#if:{{{USE|}}}|<code>{{{USE}}}</code>|(none)}}</td></tr>
keyfile /etc/chrony/chrony.keys
+
{{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}}}}
commandkey 1
+
=== Download ===
dumponexit
+
{{#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.
dumpdir /var/log/chrony
+
{{table|1=
initstepslew 10 time.apple.com
+
<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.}}
logdir /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.}}
log measurements statistics tracking
+
[[Category:Subarches]]
logchange 0.5
+
__NOEDITSECTION__
mailonchange me@emailprovider.com 0.5
+
=== Detailed Description ===
rtcfile /etc/chrony/chrony.rtc
+
</includeonly>
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}}
+

Revision as of 00:03, March 29, 2015