home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!udel!louie!ra.cis.udel.edu!stewart
- From: stewart@ra.cis.udel.edu (John Stewart)
- Newsgroups: comp.protocols.time.ntp
- Subject: Re: Setting the time when the system boots
- Message-ID: <1992Sep5.195717.13976@udel.edu>
- Date: 5 Sep 92 19:57:17 GMT
- References: <chicken.715535488@npac.syr.edu>
- Sender: usenet@udel.edu (USENET News Service)
- Organization: University of Delaware
- Lines: 27
- Nntp-Posting-Host: ra.cis.udel.edu
-
- In article <chicken.715535488@npac.syr.edu> chicken@npac.syr.edu (Mark R. Levinson) writes:
- > I'm interested in hearing how people running NTP on Unix systems set
- >the time when the system boots. Do you use ntp in your /etc/rc file? Or do
- >you use rdate instead and let NTP compensate for any initial inaccuracy
- >later? Anyone have any pros or cons one way or the other?
-
- I believe that, for people using the xntp [or xntpv3] implementation of the
- protocol, a common thing to do in /etc/rc.local (or wherever) is:
-
- if [ -f /usr/local/bin/tickadj ]; then
- /usr/local/bin/tickadj -s
- fi
-
- if [ -f /usr/local/bin/ntpdate ]; then
- /usr/local/bin/ntpdate time_server
- fi
-
- if [ -f /usr/local/bin/xntpd ]; then
- /usr/local/bin/xntpd
- fi
-
- This does an initial sync so that the xntpd will successfully start. After
- this point, the xntpd will take care of keeping the clock in sync.
-
- Hope this helps.
-
- /jws
-