If /etc/ntp.conf is not present are you sure the ntp RPM is installed?

A cron job to set time is easy to set up just use webmin to run a command like
/usr/sbin/ntpdate -s ntp2d.mcc.ac.uk at regular intervals.

If you are going to use a cron job it is vital that the ntpd service is NOT 
running, or else the job fails.


If you want to run the continuous daemon, then start the ntpd service.
I used to put the server name in /etc/ntp.conf , but recently I have been 
using the Time Server Wizard in Mandrake ControlCentre>Servers.  You need to 
install the drakwizard RPM in order to see the server menu.

The time server wizard will put the names of two time servers in 
/etc/ntp/step-tickers  I am not sure how this differs from putting the server 
name in /etc/ntp.conf, but both methods seem to work.

HTH

derek

On Sunday 09 Mar 2003 1:35 am, Chris wrote:
> Derek.  I've got my time synched with the time server in Colorado using the
> webmin>hardware>system time.  I'd like to setup a cronjob to continuously
> do this instead of running to webmin daily.  Below you mention
> /etc/ntp.conf, I can't find any such file.  I'm on a dsl connection,
> running mdk 9.0.  Thanks for any advice.
>
>    * From: Derek Jennings
>     * Subject: Re: [newbie] clock help
> * Date: Thu, 31 Oct 2002 09:32:28 -0800
>
> On Thursday 31 Oct 2002 9:05 pm, windwalker wrote:
> > I Installed mandrake.
> > NOW I have to reset taskbar clock twice daily !!
> > its gaining three hours a day..
> > It didnt do that when I only had win 98 on box
> > any thoughts on how to correct?
> > Mike
>
> You can always lock your computer to an atomic clock. It is quite easy.
> Just install the ntp RPM
> . You then have two choices of how to set the clock. As a continuously
> running daemon process, or as a job executed periodically either as a cron
> job, or whenever you dial up (assuming you are modem connected)
>
> To run as a job the command
> /usr/sbin/ntpdate -s rolex.usg.edu
>
> should be inserted in a file called /etc/ip-up.local if you are using
> dialup to set time every time you dial.
>
> Alternatively put the command in a cron job to execute at predefined times.
> (Cron jobs can be defined using Mandrake
> ControlCentre>System>ProgrammesScheduling, or with Webmin)
>
> To run as a continuous daemon put
>
> server rolex.usg.edu
>
> at the top of file /etc/ntp.conf and then start the ntpd service in
> Mandrake Control Centre or from the command line
> service ntpd start
>
> There are plenty of other time servers you can use. You can find a list
> here:- http://www.eecis.udel.edu/~mills/ntp/servers.html
>
> derek

-- 
----------------------------------
www.jennings.homelinux.net

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to