]> code.ossystems Code Review - openembedded-core.git/commit
update-rc.d: ignore initscript in prerm and preinst when systemd is active
authorAndreas Oberritter <obi@opendreambox.org>
Wed, 30 Nov 2016 12:27:28 +0000 (13:27 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Dec 2016 10:26:13 +0000 (10:26 +0000)
commitf2cc0fdfd97b097145e40bc52674e17378cec863
treeffc35ff8644dc7ea43be36eeb0fbc37bf5de5df9
parent40b4b31092058f8833ada3dfc254d362dd3139c1
update-rc.d: ignore initscript in prerm and preinst when systemd is active

In hybrid systemd/sysvinit builds, if the recipe inherits systemd and systemd
is installed, we can safely assume that the service gets stopped by the prerm
script fragment from systemd.bbclass. This fixes deinstallation of packages
with initscripts returning errors when no running service was found. The preinst
shouldn't run the initscript either, because postinst will call systemctl restart.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/update-rc.d.bbclass