xbps-triggers: [systemd-service] stop before disabling unit at pre-remove.

This commit is contained in:
Juan RP 2012-03-09 11:47:56 +01:00
parent 56d0a6f66a
commit 826d549aaf
2 changed files with 4 additions and 4 deletions

View File

@ -50,11 +50,11 @@ run)
if [ "$TARGET" = "pre-remove" ]; then
if [ "$UPDATE" = "no" ]; then
# package is being removed.
# disable and stop the unit.
echo "Disabling systemd service ${_srv}..."
systemctl --no-reload disable ${_srv} >/dev/null 2>&1 || :
# stop and disable the unit.
echo "Stopping systemd service ${_srv}..."
systemctl stop ${_srv} >/dev/null 2>&1 || :
echo "Disabling systemd service ${_srv}..."
systemctl --no-reload disable ${_srv} >/dev/null 2>&1 || :
fi
elif [ "$TARGET" = "post-install" ]; then
if [ "$UPDATE" = "no" ]; then

View File

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.39
version=0.40
short_desc="XBPS triggers"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://code.google.com/p/xbps"