[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Resetting NTP
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Resetting NTP
- From: David Benfell <benfell_(_at_)_greybeard95a_(_dot_)_com>
- Date: Sun, 10 Aug 2003 22:37:28 -0700
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
On Mon, 11 Aug 2003 11:26:28 +1000, Graeme Lee wrote:
> Put the following 2 lines in your /etc/ntp.conf at the appropriate location
> server 127.127.1.0 # local clock
> fudge 127.127.1.0 stratum 10
> You'll fall back to the internal rtc (not a perfect solution if it
> suffers from drift) when no other server is available
This is good, but...
> Mike Ayers wrote:
> > I am on a leased DHCP uplink, so my lease expires every so often
> >and I get a new one. No problem. However, whern this happens, ntpd
> >is no longer able to communicate, because it is communitcating over
> >sockets that were opened with the old address. The simple solution is
> >to shut down and restart ntpd every time the external address
> >changes. However, ntp runs as root, so there are security issues
> >involved. I am running the no-ip2 port, and intend to use it to
> >restart ntpd. The no-ip2 process runs as user nobody. Before I put a
> >setuid script in a place only nobody can reach, I was wondering if
> >anyone knew a better solution.
I notice in the dhclient.conf man page that there is a script option.
Could one use this to restart ntpd?
David Benfell, LCP
Resume available at http://www.parts-unknown.org/resume.html
[demime 0.98d removed an attachment of type application/pgp-signature]
Visit your host, monkey.org