[Pkg-sysvinit-devel] Bug#656081: /usr/sbin/service: disrespects policy-rc.d
Andreas Beckmann
debian at abeckmann.de
Tue Jan 17 15:29:55 UTC 2012
severity 656081 wishlist
clone 656081 -1
retitle 656081 document that /usr/sbin/service disrespects policy-rc.d intentionally
reassign -1 lintian
retitle -1 check for maintainer scripts that use 'service' instead of 'invoke-rc.d'
thanks
On 2012-01-17 01:52, Henrique de Moraes Holschuh wrote:
> On Mon, 16 Jan 2012, Andreas Beckmann wrote:
>> 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.
>
> 'service' is for use by the local admin, not packages, thus it has no
> business trying to second guess anything, so yes, it IS supposed to ignore
> policy-rc.d and builtin invoke-rc.d policies. If the local admin told
> 'service' to start a service, it should do just that, even inside chroots.
Thanks for the clarification. So there is no bug in service, but the
manpage could mention this explicitly. retitling/downgrading ...
> Any package not using invoke-rc.d in the maintainer scripts to start/stop a
> sysv initscript service is severly broken and has to be fixed, use of
> 'service' by a package's maintainer script OR inside the initscript is NOT
> allowed.
>
>> Should there be a lintian check for
>> maintainer-script-uses-service-instead-of-invoke-rc.d?
>
> That would be really nice...
... and cloning to lintian.
Dear lintian maintainers,
please check for maintainer scripts that use /usr/bin/service instead of
invoke-rc.d to run init scripts.
One buggy package is mobyle 1.0.4~dfsg-2, but this is fixed in -3.
Andreas
More information about the Pkg-sysvinit-devel
mailing list