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>
master
Jonas Gorski 8 years ago
parent 88a14bfd1d
commit 48cfc826eb
  1. 2
      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
}

Loading…
Cancel
Save