[pkg-ntp-maintainers] Bug#600661: ntp: Uses /var/lib/ntp/ntp.conf.dhcp regardless!?

Russell Stuart russell-debian at stuart.id.au
Fri Jun 29 02:16:10 UTC 2012


I just got bitten by the same problem on squeeze.

In my case I used DHCP when I first commissioned the machine, then
swapped to a fixed IP once it was going.  I am not sure
why /var/lib/ntp/ntp.conf.dhcp wasn't cleaned up, but it's now been
there unnoticed for many months across several reboots.  Most of those
reboots have been caused by power failures.

Ideally /etc/init.d/ntp should check if the dhclient that
created /var/lib/ntp/ntp.conf.dhcp is still running and remove it if
not.  If that is too complex simply moving /var/lib/ntp/ntp.conf.dhcp
to /var/run/ntp/ntp.conf.dhcp would ensure the problem gets fixed
eventually, as everything in /var/run gets cleaned up on reboot.






More information about the pkg-ntp-maintainers mailing list