[ntp:questions] Why does ntp keep changing my conf file?
Kelly, Steven J CIV SPAWARSYSCEN-ATLANTIC, 56120
steven.j.kelly at navy.mil
Thu Sep 16 17:57:23 UTC 2010
I would like to know the answer to this question, because I have been seeing the exact same problem with my RHL 5.2 machines.
From: questions-bounces+steven.j.kelly=navy.mil at lists.ntp.org [mailto:questions-bounces+steven.j.kelly=navy.mil at lists.ntp.org] On Behalf Of Daniel Havey
Sent: Thursday, September 16, 2010 1:39 PM
To: questions at lists.ntp.org; Rob
Subject: Re: [ntp:questions] Why does ntp keep changing my conf file?
Well you are right. The init.d script does something that rewrites the ntp.conf file. I don't understand enough bash to figure it out so I just started ntp manually. It doesn't change the ntp.conf ;^)
But it doesn't work properly either ;^(
First of all this looks fishy:
[dhavey at node0 /etc]$ ntpq -p
remote refid st t when poll reach delay offset jitter
cogsworth.aero. .INIT. 16 u - 1024 0 0.000 0.000 0.000
dns.aero.org .INIT. 16 u - 1024 0 0.000 0.000 0.000
Those delay, offset, and jitter values are too good to be true and the other machine won't connect:
[dhavey at node1 ~]$ sudo ntpdate node0.rms01.wgs.sntb.aero.org
16 Sep 10:24:03 ntpdate: no server suitable for synchronization found
--- On Thu, 9/16/10, Rob <nomail at example.com> wrote:
> From: Rob <nomail at example.com>
> Subject: Re: [ntp:questions] Why does ntp keep changing my conf file?
> To: questions at lists.ntp.org
> Date: Thursday, September 16, 2010, 9:24 AM Daniel Havey
> <dhavey at yahoo.com>
> > Hehe ;^)
> > This thing is nuts man ;^) Why does it allow my
> conf file to get rewritten?
> > When I run sudo /etc/init.d/ntpd restart It wipes out my server
> > lines and puts in one of it's
> own ;^)
> It is not ntp that is doing this. it is your /etc/init.d/ntpd script
> which was made by the distributor of your Linux system.
> Look in this script what is happening. There is probably some setting
> that you can do somewhere that tells the script to leave the conf file
> questions mailing list
> questions at lists.ntp.org
questions mailing list
questions at lists.ntp.org
More information about the questions