unnecessary ntpdate invokation

Bug #959990 reported by Alexandre Bezroutchko
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ntp (Ubuntu)
Invalid
Low
Unassigned

Bug Description

root@lxc:~# lsb_release -rd
Description: Ubuntu 10.04.4 LTS
Release: 10.04

root@lxc:~# apt-cache policy ntpdate
ntpdate:
  Installed: 1:4.2.4p8+dfsg-1ubuntu2.1

On interface up /etc/network/if-up.d/ntpdate is invoked, which in turn invokes ntpdate. In some setups, for example when Ubuntu runs in XEN domU or in LXC container, there is no need to do this. It can actually do more harm than good.

I think there should be a way to disable this, for example by adding a RUN_IFUP_NTDATE=no to /etc/default/ntpdate. Workarounds:

1) remove the file or disable executable bit on /etc/network/if-up.d/ntpdate
2) remove 'ntpdate' package, but this also removes ubuntu-minimal

James Page (james-page)
Changed in ntp (Ubuntu):
importance: Undecided → Low
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hi Alexandre thanks for taking the time to file this bug report. Removing /etc/network/if-up.d/ntpdate is actually the way to do this. Any file in /etc will be tracked as a conffile in dpkg. Dpkg respects removed conffiles on upgrade, so it won't be restored, nor will it be missed since this is a .d style directory.

Since there's nothing to fix, I'm closing this as Invalid. If you have any further information that might contradict that, please feel free to re-open the bug by setting the status back to New, or by opening a new bug report.

Changed in ntp (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.