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
Last revision Both sides next revision
howtos:network_services:ntp [2014/02/17 06:30 (UTC)]
kikinovak
howtos:network_services:ntp [2014/02/17 06:35 (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 =====

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