[Pkg-sysvinit-devel] Bug#747854: sysvrc: invoke-rc.d fails on masked systemd units

Martin Pitt mpitt at debian.org
Mon May 12 10:34:00 UTC 2014


Hello again,

As a further clarification: This only affects cases where a package
has a systemd unit, but not an init.d script. In this case we run into
this condition:

  elif [ -z "$is_upstart" ] && test ! -f "${INITDPREFIX}${INITSCRIPTID}" ; then

and as there's no init.d script this just does "exit 100". With an
init.d script this instead goes into the following "else" clause which
does "RC=101" instead, and the whole thing succeeds.

However, even with an init.d script it doesn't currently tell you the
reason why it didn't actually do anything, so the patch still mildly
improves that case, too.

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)



More information about the Pkg-sysvinit-devel mailing list