Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howtos:network_services:ntp [2014/02/17 06:30 (UTC)]
kikinovak
howtos:network_services:ntp [2014/02/17 21:13 (UTC)]
kikinovak
Line 154: Line 154:
  
 <note tip>​Again,​ you might have to wait a few minutes before the first synchronization takes place.</​note>​ <note tip>​Again,​ you might have to wait a few minutes before the first synchronization takes place.</​note>​
- 
-=== Synchronizing at boot time === 
- 
-If instead of using a daemon, all you want to do is to synchronize time once per boot, it is possible to add the command ''​ntpd -qg &''​ in the bottom of the file ''/​etc/​rc.d/​rc.local''​. This will synchronize the time once in the background and will exit and it needs ''/​etc/​rc.d/​rc.ntpd''​ to not be an executable. 
-  ​ 
-  ~# cat /​etc/​rc.d/​rc.local 
-  #!/bin/sh 
-  # 
-  # /​etc/​rc.d/​rc.local: ​ Local system initialization script. 
-  # 
-  # Put any local startup commands in here.  Also, if you have 
-  # anything that needs to be run at shutdown time you can 
-  # make an /​etc/​rc.d/​rc.local_shutdown script and put those 
-  # commands in there. 
-  . 
-  . 
-  . 
-  ntpd -qg & 
   ​   ​
 ===== Monitor the performance of ntpd ===== ===== Monitor the performance of ntpd =====
Line 201: Line 183:
 </​code>​ </​code>​
  
-Given enough data, visual examination of the plots will allow you to see peculiarities in ''​ntpd''​ performance,​ should they arise. For example, in the case illustrated by [[http://​www.astro.uni.wroc.pl/​ludzie/​drobek/​ntp_time+freq.png|this ​figure]], the rapid decrease of the frequency offset was caused by replacing the power supply unit of the machine.+Given enough data, visual examination of the plots will allow you to see peculiarities in ''​ntpd''​ performance,​ should they arise. For example, in the case illustrated by the figure ​below, the rapid decrease of the frequency offset was caused by replacing the power supply unit of the machine. 
 + 
 +{{:​howtos:​network_services:​ntp_time_freq.png|}}
  
 ====== Sources ====== ====== Sources ======

In Other Languages
QR Code
QR Code howtos:network_services:ntp (generated for current page)