[pkg-ntp-maintainers] Bug#387002: ntp/ntpdate: Inaccurate LSB-header in init.d scripts

Petter Reinholdtsen pere at hungry.com
Mon Sep 11 15:54:48 UTC 2006


Package: ntp
Version: 1:4.2.2+dfsg.2-1
Tags:    patch

The LSB header for ntp is inaccurate and slightly incorrect.  It
currently look like this:

  ### BEGIN INIT INFO
  # Provides:        $time
  # Required-Start:  $network
  # Required-Stop:   $network
  # Should-Start:    ntpdate
  # Should-Stop:     ntpdate
  # Default-Start:   S 1 2 3 4 5
  # Default-Stop:    0 6
  ### END INIT INFO

It should not start in the S runlevel, should stop in runlevel 1, and
should not provide a facility name $time, but instead provide 'ntp'.
I discovered this while testing a dependency based boot system.  It
should probably also start after syslog and all file systems are
mounted.  Please change it to look like this:

  ### BEGIN INIT INFO
  # Provides:        ntp
  # Required-Start:  $network $remote_fs $syslog
  # Required-Stop:   $network $remote_fs $syslog
  # Should-Start:    ntpdate
  # Should-Stop:     ntpdate
  # Default-Start:   2 3 4 5
  # Default-Stop:    0 1 6
  ### END INIT INFO

Similar, the header for ntpdate is slightly inaccurate.  It current
look like this:

  ### BEGIN INIT INFO
  # Provides:        $time
  # Required-Start:  $remote_fs $network hwclock
  # Required-Stop:   $remote_fs $network hwclock
  # Default-Start:   S 1 2 3 4 5
  # Default-Stop:    0 6
  ### END INIT INFO

It should not provide the facility name $time, and only be used in
runlevel S.  Please change it to look like this:

  ### BEGIN INIT INFO
  # Provides:        ntpdate
  # Required-Start:  $network $remote_fs hwclock
  # Required-Stop:
  # Default-Start:   S
  # Default-Stop:
  ### END INIT INFO

Friendly,
-- 
Petter Reinholdtsen




More information about the pkg-ntp-maintainers mailing list