[Pkg-sysvinit-devel] Bug#656081: Bug#656081: /usr/sbin/service: disrespects policy-rc.d
Henrique de Moraes Holschuh
hmh at debian.org
Tue Jan 17 00:52:37 UTC 2012
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.
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...
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
More information about the Pkg-sysvinit-devel
mailing list