aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2016-11-21 15:47:48 +0100
committerJonas Gorski <jonas.gorski@gmail.com>2016-11-21 18:40:15 +0100
commit48cfc826ebc9242c493ddbca484bbee36ba74b93 (patch)
tree69a79f894b0fd5b5bf2ed71377eb62f7ed52095a /package/base-files/files
parent88a14bfd1da55bbddf5a86b3c452f1d8b1c46a60 (diff)
downloadupstream-48cfc826ebc9242c493ddbca484bbee36ba74b93.tar.gz
upstream-48cfc826ebc9242c493ddbca484bbee36ba74b93.tar.bz2
upstream-48cfc826ebc9242c493ddbca484bbee36ba74b93.zip
base-files: ignore failure of stopping services on removal
Packages that do a killall <cmd> 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 <jonas.gorski@gmail.com> Acked-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/lib/functions.sh2
1 files changed, 1 insertions, 1 deletions
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
}