On Sun, 30 Mar 2003, Raptorfan wrote:

> Howdy. I've a small problem that is really starting to piss me off. I have a
> custom ntp.conf on my plaything gentoo box; all ntpd does on this box is
> maintain peer connections amongst all my home unix boxen (one of which syncs
> to outside sources). Whenever this box is rebooted (which is frequent as its
> also a new-kernel playground) something (I presume the ntpd startup script)
> proceeds to nuke my custom ntp.conf and replace it with the default
> ntp.conf, looking only at the internal clock. Well, I HAVE my own ntp.conf
> and I WANT it used. Can anyone help me make this thing keep blowing my
> desired conf file away?

It's not ntpd that is messing you up, it's dhcpc. In your /etc/conf.d/net file
is a line dhcpcd_eth0= line (eth0 should be replaced with whatever interface
you are actually using dhcpc on)
I think the line defaults to
dhcpcd_eth0=""
but mine is now
dhcpcd_eth0="-Y -N"

the -N tells it to stop messing around with the ntp.conf file, and the -Y
tells it not to mess around with yp.conf. You can also add -R to protect the
resolv.conf file, but I happen to want this one to update dynamically.

On the other hand, if the dhcp server is under your control, you can have it
send reasonable values for the ntp server settings and have it updated
across your entire network. I personally don't thing they should have made
this the default, but it is a lot easier to maintain a large network this
way.

-- 
Craig West         Ph: (416) 567-1491   |  It's not a bug,
[EMAIL PROTECTED]               |  It's a feature...


--
[EMAIL PROTECTED] mailing list

Reply via email to