Bug#387432: lintian: init.d test should allow present but empty default-stop and required-stop
Package: lintian
Version: 1.23.24
Great to see lintian check for LSB headers in init.d scripts. :)
But while working on systems using these headres, I discovered an
issue. When running lintian on the latest version of ifupdown, it
complains about the init.d scripts:
W: ifupdown: init.d-script-missing-lsb-keyword
/etc/init.d/ifupdown-clean default-stop
W: ifupdown: init.d-script-missing-lsb-keyword
/etc/init.d/ifupdown-clean required-stop
The script look like this, and it should not stop in any runlevel, and
only be used in runlevel S, and thus do not need any required-stop
values either:
### BEGIN INIT INFO
# Provides: ifupdown-clean
# Required-Start: checkroot
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Clean old iterface status info during boot.
### END INIT INFO
So the lintian check should accept present but empty required-stop and
default-stop headers. It should probably also accept empty but
present required-start and default-start values, for scripts only used
during shutdown.
Friendly,
--
Petter Reinholdtsen
Reply to: