xbps-triggers: [systemd-service] stop before disabling unit at pre-remove.
This commit is contained in:
parent
56d0a6f66a
commit
826d549aaf
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue