[Pkg-sysvinit-devel] Bug#747851: invoke-rc.d does not execute action if a package only has an upstart job and a systemd unit
Martin Pitt
martin.pitt at ubuntu.com
Mon May 12 08:17:10 UTC 2014
Package: sysv-rc
Version: 2.88dsf-55
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch utopic
Hello,
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.
Patch attached against current packaging git.
Thanks for considering,
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-invoke-rc.d-Fix-actions-to-run-under-systemd-if-ther.patch
Type: text/x-diff
Size: 1785 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20140512/05490fbb/attachment.patch>
-------------- 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/05490fbb/attachment.sig>
More information about the Pkg-sysvinit-devel
mailing list