Re: command line/script to setup ntpd
From: Bit Twister (BitTwister_at_localhost.localdomain)
Date: 12/01/04
- Next message: Michael Stevens: "Re: Please help with XP Professional dual boot"
- Previous message: linuxquestion_at_yahoo.com: "Please help with XP Professional dual boot"
- In reply to: Bit Twister: "Re: command line/script to setup ntpd"
- Next in thread: Lawrence DčOliveiro: "Re: command line/script to setup ntpd"
- Reply: Lawrence DčOliveiro: "Re: command line/script to setup ntpd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 01 Dec 2004 04:33:46 GMT
On Wed, 01 Dec 2004 04:28:56 GMT, Bit Twister wrote:
> On 30 Nov 2004 20:17:55 -0800, joshua wrote:
>> Dear folks,
>> I know I can setup date/time in Fedora2/3 by system-config-date
>> interface.
>> Now if I want to set it up using command line for script (for
>> example, in kickstart's postinstall), what should I do? How to enable
>> ntpd and syncing to the server say, stdtime.mydomain and guarantee
>> that it sync with the server for some interval?
>>
>> ....
>> ( ???? )
>> chkconfig --level 35 ntpd on
>
> Usually you add the links with
> chkconfig --add ntpd
>
> that gets/sets Start/Kill levels from /etc/init.d/ntpd
>
> On Mandrake there is a /etc/ntp directory with drift, keys and step-tickers
>
>
> step-tickers contains the FQDN or ip address of the time server(s)
> after awhile, a day?, the drift file will settle down on the offset.
>
>
> To check on it
> grep ntpd /var/log/messages # snippet
>
> 22:14:08 ntpd: ntpd startup succeeded
> 22:14:08 ntpd[2952]: precision = 1.000 usec
> 22:14:08 ntpd[2952]: kernel time sync status 0040
> 22:14:08 ntpd[2952]: frequency initialized -25.253 PPM from /etc/ntp/drift
> 22:17:22 ntpd[2952]: synchronized to LOCAL(0), stratum=10
> 22:17:22 ntpd[2952]: kernel time sync disabled 0041
> 22:18:26 ntpd[2952]: kernel time sync enabled 0001
> 22:22:46 ntpd[2952]: synchronized to 192.168.2.1, stratum=4
forgot to add /etc/ntp.conf
which will also need your time server FQDN or ip addy.
- Next message: Michael Stevens: "Re: Please help with XP Professional dual boot"
- Previous message: linuxquestion_at_yahoo.com: "Please help with XP Professional dual boot"
- In reply to: Bit Twister: "Re: command line/script to setup ntpd"
- Next in thread: Lawrence DčOliveiro: "Re: command line/script to setup ntpd"
- Reply: Lawrence DčOliveiro: "Re: command line/script to setup ntpd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|