← Back to team overview

touch-packages team mailing list archive

[Bug 288905] Re: /etc/init.d/ntp doesnt use ntpdate to ensure clocks are aligned before starting server.

 

It can be dangerous to step the clock while applications are running
(see the fallout from the last couple of leap seconds). Stepping only
needs to be done at boot. It makes more sense to just have separate init
scripts for both ntpdate and ntp and to order them correctly. Adding
ntpdate to the ntp init script would make it impossible to make changes
to your ntpd configuration without stepping the clock (again, dangerous)
or rebootinng.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/288905

Title:
  /etc/init.d/ntp doesnt use ntpdate to ensure clocks are aligned before
  starting server.

Status in ntp package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: ntp

  Ubuntu: 8.04.1
  ntp: 1:4.2.4p4+dfsg-3ubuntu2

  Despite other comments on here that ntpdate should be run from ifup
  scripts there is still a fundamental issue.

  If due to failures such as #114505 not bringing up ntpd correctly if
  the clock drifts you have to ifdown, ifup an interface. On a major
  server thats just plain ridiculous...To fix the ntp daemon I have to
  pull down an ENTIRE network interface and stuff every service that is
  running on that interface - simply to fix ntpd.

  The alternative is that I have to either recognise and issue and then

  /etc/int.d/ntp stop
  ntpdate-debian 
  /etc/init.d/ntp start

  again silly - because an /etc/init.d/ntp restart should work - the
  point of running NTP is it syncs.

  Therefore I propose that the /etc/init.d/ntp script is patched to
  include running of 'ntpdate-debian' during startup of the ntp server.
  This is a far more fail-safe method of working instead of forcing the
  admin to have to remember to run ntpdate-debian in case the clock has
  drifted excessively.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/288905/+subscriptions