[Pkg-sysvinit-devel] Bug#656081: /usr/sbin/service: disrespects policy-rc.d

Andreas Beckmann debian at abeckmann.de
Mon Jan 16 11:15:22 UTC 2012


Package: sysvinit-utils
Version: 2.88dsf-18
Severity: important
File: /usr/sbin/service

Hi,

I just analyzed a piuparts failure in the mobyle package that was caused
by abusing the 'service' command to restart apache (a violation of
Policy 9.3.3.2 which says 'maintainer scripts must use invoke-rc.d').

The problem with 'service' is that it actually tried to start apache
while piuparts had created a policy-rc.d that prevents any service from
being started in the chroot. (Apache could not be started in the chroot
because :80 was already in use by the host).

I don't think 'service' should deviate from 'invoke-rc.d' in that case.

There is also http://bugs.debian.org/377758 which asks to provide a
symlink service -> update-rc.d (and was probably filed before service
was shipped).

piuparts log (also attached):
http://piuparts.debian.org/sid/fail/mobyle_1.0.4~dfsg-2.log
http://piuparts.debian.org/sid/bugged/mobyle_1.0.4~dfsg-2.log
Incorrect postinst:
http://anonscm.debian.org/viewvc/debian-med/trunk/packages/mobyle/mobyle/trunk/debian/postinst?revision=7875&view=markup

Should there be a lintian check for
maintainer-script-uses-service-instead-of-invoke-rc.d?

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mobyle_1.0.4~dfsg-2.log.gz
Type: application/x-gzip
Size: 14286 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20120116/bb8e6996/attachment.bin>


More information about the Pkg-sysvinit-devel mailing list