[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resetting NTP

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     # local clock
> fudge     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