home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / protocol / time / ntp / 867 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.3 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!udel!louie!ra.cis.udel.edu!stewart
  2. From: stewart@ra.cis.udel.edu (John Stewart)
  3. Newsgroups: comp.protocols.time.ntp
  4. Subject: Re: Setting the time when the system boots
  5. Message-ID: <1992Sep5.195717.13976@udel.edu>
  6. Date: 5 Sep 92 19:57:17 GMT
  7. References: <chicken.715535488@npac.syr.edu>
  8. Sender: usenet@udel.edu (USENET News Service)
  9. Organization: University of Delaware
  10. Lines: 27
  11. Nntp-Posting-Host: ra.cis.udel.edu
  12.  
  13. In article <chicken.715535488@npac.syr.edu> chicken@npac.syr.edu (Mark R. Levinson) writes:
  14. >    I'm interested in hearing how people running NTP on Unix systems set
  15. >the time when the system boots. Do you use ntp in your /etc/rc file? Or do
  16. >you use rdate instead and let NTP compensate for any initial inaccuracy
  17. >later? Anyone have any pros or cons one way or the other?
  18.  
  19. I believe that, for people using the xntp [or xntpv3] implementation of the
  20. protocol, a common thing to do in /etc/rc.local (or wherever) is:
  21.  
  22.     if [ -f /usr/local/bin/tickadj ]; then
  23.         /usr/local/bin/tickadj -s
  24.     fi
  25.  
  26.     if [ -f /usr/local/bin/ntpdate ]; then
  27.         /usr/local/bin/ntpdate time_server
  28.     fi
  29.  
  30.     if [ -f /usr/local/bin/xntpd ]; then
  31.         /usr/local/bin/xntpd
  32.     fi
  33.  
  34. This does an initial sync so that the xntpd will successfully start.  After
  35. this point, the xntpd will take care of keeping the clock in sync.
  36.  
  37. Hope this helps.
  38.  
  39. /jws
  40.