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/ slanga...@ubuntu.com vor...@debian.org
signature.asc
Description: Digital signature