[OE-core] [PATCH] classes: Fix alternatives and rc.d ordering

2016-11-28 Thread David Vincent
When using an alternative as an initscript, the ordering between update-rc.d and update-alternatives tasks during prerm and postinst tasks must always be the following in order to work: * prerm: - stop daemon - remove alternative * postinst: - add alternative - start daemon

[OE-core] [PATCH] classes: Fix alternatives and rc.d ordering

2016-11-23 Thread David Vincent
When using an alternative as an initscript, the ordering between update-rc.d and update-alternatives tasks during prerm and postinst tasks must always be the following in order to work: * prerm: - stop daemon - remove alternative * postinst: - add alternative - start daemon