Skip to content

Commit

Permalink
base-files: ignore failure of stopping services on removal
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
KanjiMonster committed Nov 21, 2016
1 parent 88a14bf commit 48cfc82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/base-files/files/lib/functions.sh
Expand Up @@ -178,7 +178,7 @@ default_prerm() {
if [ "$PKG_UPGRADE" != "1" ]; then
"$i" disable
fi
"$i" stop
"$i" stop || /bin/true
fi
done
}
Expand Down

0 comments on commit 48cfc82

Please sign in to comment.