From df80b8107660d40000226d66f5c981f437f79325 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Tue, 11 Oct 2016 15:43:29 +0300 Subject: sysklogd and busybox: ignore return code from init script stop The init script will return '1' if we try to stop the service and it is not currently running. The prerm scriptlet must not fail because of this because it will cause package deinstallation of upgrade fail if opkg package manager is used. [YOCTO #10299] (From OE-Core rev: 806a910927f479207d47b06c20a0497e91203266) Signed-off-by: Markus Lehtonen Signed-off-by: Richard Purdie --- meta/recipes-extended/sysklogd/sysklogd.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-extended/sysklogd/sysklogd.inc') diff --git a/meta/recipes-extended/sysklogd/sysklogd.inc b/meta/recipes-extended/sysklogd/sysklogd.inc index 1e363db6e8..5c15ffe8ab 100644 --- a/meta/recipes-extended/sysklogd/sysklogd.inc +++ b/meta/recipes-extended/sysklogd/sysklogd.inc @@ -55,7 +55,7 @@ ALTERNATIVE_LINK_NAME[syslog-conf] = "${sysconfdir}/syslog.conf" pkg_prerm_${PN} () { if test "x$D" = "x"; then if test "$1" = "upgrade" -o "$1" = "remove"; then - /etc/init.d/syslog stop + /etc/init.d/syslog stop || : fi fi } -- cgit v1.2.3-54-g00ecf