Restarting ntpd on address change
Ian D. Leroux
ian_leroux at fastmail.fm
Thu Dec 1 01:02:22 GMT 2005
On Wed, 2005-11-30 at 10:55 -0800, Luke Dean wrote:
>
> On Tue, 29 Nov 2005, Ian D. Leroux wrote:
> > I had
> > added a line to my /etc/dhclient-exit-hooks to restart ntpd every time a
> > new address was obtained:
> >
> > [...]
> > This seemed work fine on 5.4, but on 6.0 it gives problems at boot.
> > Specifically, I get repeated "bad file descriptor" errors after my
> > network address is assigned, and running ps after the boot completes
> > shows that there are two ntpd processes running.
> > [...]
> I needed to solve that same problem and came up with the same solution you
> did. I saw it work under 5.4 several times when my ISP did maintenance on
> my upstream router. I've kept the same setup under 6 and haven't noticed
> any problems yet. I've been fortunate enough to keep my IP address leased
> since my upgrade to 6, so I haven't truly tested this under 6. Eventually
> my ISP will do something to make me lose my lease, and if I have any
> problems then, I'll post.
Thanks for the second opinions and the tricks. I'll give it another try
when I have a moment and report back if anything interesting and
reproducible happens.
Cheers,
Ian D. Leroux
More information about the freebsd-stable
mailing list