[pkg-ntp-maintainers] Bug#550061: Bug#550061: ntp: Leaves stale tmp files

Kurt Roeckx kurt at roeckx.be
Sun Dec 27 22:59:39 UTC 2009

On Wed, Oct 07, 2009 at 04:32:11PM +0200, Harald Braumann wrote:
> Hi,
> here is some additional info: it seems, ntpd creates these files, when
> it can't connect to a server. 
> If I unplug the network cable, the
> interface is taken down by ifplugd, dhcp loses the lease and restarts
> ntpd via /etc/dhcp3/dhclient-exit-hooks.d/ntp. In this case a temporary
> file is created and never deleted. 
> If I restart ntpd manually while the network is connected, no temporary
> file is created.

I've been trying to reproduce this using 4.2.4p7+dfsg-4, but I
never get such files.

On the other hand looking at the code, I don't see how it could
be cleaned up in the succesful case.

So you somehow must be triggering other code than other people.
Can you tell me something more about your setup?  Like how is
the resolver configured.  What do you have in /etc/resolv.conf
when that happens, and what does "grep hosts /etc/nsswitch.conf"

Do you have ipv6 connectivity?  Or is ipv6 completly disabled?


More information about the pkg-ntp-maintainers mailing list