[Pkg-sysvinit-devel] Bug#747851: Bug#747851: invoke-rc.d does not execute action if a package only has an upstart job and a systemd unit

Steve Langasek vorlon at debian.org
Tue May 13 02:31:09 UTC 2014


On Mon, May 12, 2014 at 10:17:10AM +0200, Martin Pitt wrote:
> When running under systemd and a package only has an upstart job and a
> systemd unit, the "testexec" in invoke-rc.d will be false and
> is_upstart as well, thus the actions are never run in this case. This
> causes invoke-rc.d to just exit with code 102 without actually doing
> anything.

> I realize that this is a corner case in Debian as packages are
> required to have an init.d script; but it currently is quite common in
> Ubuntu, so it would be nice if this could be fixed in Debian as well.
> It's also quite an obvious omission from the "if" statement, as the
> subsequent inner case distinction between the init systems includes
> is_systemd as well.

Note that any such package is in violation of Debian policy, which requires
an init script as the least common denominator interface.

The change itself appears to straightforwardly do what's intended, but I
leave it for someone else to decide if we should apply this in support of
policy-violating packages in Ubuntu.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20140512/9a0a6f82/attachment.sig>


More information about the Pkg-sysvinit-devel mailing list