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>
This commit is contained in:
Jonas Gorski 2016-11-21 15:47:48 +01:00
parent 88a14bfd1d
commit 48cfc826eb

View File

@ -178,7 +178,7 @@ default_prerm() {
if [ "$PKG_UPGRADE" != "1" ]; then
"$i" disable
fi
"$i" stop
"$i" stop || /bin/true
fi
done
}