Difference between revisions of "Set Up Chrony For Accurate System Time"

From Funtoo
Jump to: navigation, search
(Accurate System Time (NTP))
(Accurate System Time (NTP))
Line 40: Line 40:
 
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>:
  
<console>
+
{{File
###i## nano /etc/conf.d/chronyd
+
|/etc/conf.d/chronyd|<pre>
 
rc_need=dhcpcd
 
rc_need=dhcpcd
</console>
+
</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.
 
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:System]]

Revision as of 13:55, 5 February 2014

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 net-misc/chrony.

# emerge chrony
# rc-update add chronyd default

Use something like the following for your /etc/chrony/chrony.conf:

{{{name}}}
{{{body}}}

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:

{{{name}}}
{{{body}}}

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.