[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#571280: false positive for "init.d-script-missing-dependency-on-remote_fs /etc/init.d/rsyslog: required-stop"



Package: lintian
Version: 2.3.3
Severity: normal

Hi,

the rsyslog init script has the following LSB header

### BEGIN INIT INFO
# Provides:          rsyslog
# Required-Start:    $remote_fs $time
# Required-Stop:     umountnfs $time
# X-Stop-After:      sendsigs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: enhanced syslogd
# Description:       Rsyslog is an enhanced multi-threaded syslogd.
#                    It is quite compatible to stock sysklogd and can
#                    be»
#                    used as a drop-in replacement.
### END INIT INFO

The 
# Required-Stop:     umountnfs $time
# X-Stop-After:      sendsigs

statements, ensure, that rsyslog is stopped as late as possible during
shut down so it can collect log messages as long as possible.
I uses the sendsigs_omit feature to ensure that it is not killed by the
sendsigs init script in 0/6.

Afaics the LSB header of rsyslog is correct and the following error
message by lintian, a false positive:

E: rsyslog: init.d-script-missing-dependency-on-remote_fs
/etc/init.d/rsyslog: required-stop
N: 
N:    The given init script seems to refer to /usr, possibly using a
file or
N:    binary from there. Without a dependency on $remote_fs in
Required-Start
N:    or Required-Stop, as appropriate, the init script might be run
before
N:    /usr is mounted or after it's unmounted.
N:    
N:    Using Should-Start or Should-Stop to declare the dependency is
N:    conceptually incorrect since the $remote_fs facility is always
N:    available. Required-Start or Required-Stop should be used instead.
N:    
N:    Refer to http://wiki.debian.org/LSBInitScripts for details.
N:    
N:    Severity: important, Certainty: possible


Cheers,
Michael



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.33-rc8 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lintian depends on:
ii  binutils               2.20-6            The GNU assembler, linker and bina
ii  diffstat               1.47-1            produces graph of changes introduc
ii  dpkg-dev               1.15.5.6          Debian package development tools
ii  file                   5.04-1            Determines file type using "magic"
ii  gettext                0.17-9            GNU Internationalization utilities
ii  intltool-debian        0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii  libapt-pkg-perl        0.1.24            Perl interface to libapt-pkg
ii  libclass-accessor-perl 0.34-1            Perl module that automatically gen
ii  libipc-run-perl        0.84-1            Perl module for running processes
ii  libparse-debianchangel 1.1.1-2           parse Debian changelogs and output
ii  libtimedate-perl       1.2000-1          collection of modules to manipulat
ii  liburi-perl            1.52-1            module to manipulate and access UR
ii  locales                2.10.2-5          Embedded GNU C Library: National L
ii  man-db                 2.5.7-1           on-line manual pager
ii  perl [libdigest-sha-pe 5.10.1-11         Larry Wall's Practical Extraction 

lintian recommends no packages.

Versions of packages lintian suggests:
pn  binutils-multiarch            <none>     (no description available)
ii  libtext-template-perl         1.45-1     Text::Template perl module
ii  man-db                        2.5.7-1    on-line manual pager

-- no debconf information



Reply to: