Bug#458596: lintian: Should report LSB headers with S in default-stop
Package: lintian
Version: 1.23.41
Earlier, it was believed that the S "runlevel" should be listed in the
default-stop section of the LSB header of init.d scripts.  This has
proven to be a bad idea, as the S "runlevel" is really not a real
runlevel and it is only used during boot, so there is no way to switch
_to_ this runlevel, and thus no use for stop scripts in it.
It would be great if lintian reported such bug, and gave a warning or
error about it.  Headers like this (or with other runlevel values
listed with the 'S') should generate an lintian error or warning:
  ### BEGIN INIT INFO
  [...]
  # Default-Stop:      S
  [...]
  ### END INIT INFO
It is always an error to list S in default-stop, so I would recommend
reporting an error if the LSB header is present and S is listed in
default-stop.
Happy hacking,
-- 
Petter Reinholdtsen
Reply to: