From 48cfc826ebc9242c493ddbca484bbee36ba74b93 Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Mon, 21 Nov 2016 15:47:48 +0100 Subject: [PATCH] base-files: ignore failure of stopping services on removal Packages that do a killall with the same name as the init script will fail the prerm step when the service isn't running. Do make them removable without having to restart the service, ignore the return code. Signed-off-by: Jonas Gorski Acked-by: Jo-Philipp Wich --- package/base-files/files/lib/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index a5838f6035..b3bf2213f4 100755 --- a/package/base-files/files/lib/functions.sh +++ b/package/base-files/files/lib/functions.sh @@ -178,7 +178,7 @@ default_prerm() { if [ "$PKG_UPGRADE" != "1" ]; then "$i" disable fi - "$i" stop + "$i" stop || /bin/true fi done }