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

Attachment: mobyle_1.0.4~dfsg-2.log.gz
Description: GNU Zip compressed data

Reply via email to