xbps-triggers: [systemd-service] stop before disabling unit at pre-remove.
This commit is contained in:
parent
56d0a6f66a
commit
826d549aaf
2 changed files with 4 additions and 4 deletions
srcpkgs/xbps-triggers
|
@ -50,11 +50,11 @@ run)
|
||||||
if [ "$TARGET" = "pre-remove" ]; then
|
if [ "$TARGET" = "pre-remove" ]; then
|
||||||
if [ "$UPDATE" = "no" ]; then
|
if [ "$UPDATE" = "no" ]; then
|
||||||
# package is being removed.
|
# package is being removed.
|
||||||
# disable and stop the unit.
|
# stop and disable the unit.
|
||||||
echo "Disabling systemd service ${_srv}..."
|
|
||||||
systemctl --no-reload disable ${_srv} >/dev/null 2>&1 || :
|
|
||||||
echo "Stopping systemd service ${_srv}..."
|
echo "Stopping systemd service ${_srv}..."
|
||||||
systemctl stop ${_srv} >/dev/null 2>&1 || :
|
systemctl stop ${_srv} >/dev/null 2>&1 || :
|
||||||
|
echo "Disabling systemd service ${_srv}..."
|
||||||
|
systemctl --no-reload disable ${_srv} >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
elif [ "$TARGET" = "post-install" ]; then
|
elif [ "$TARGET" = "post-install" ]; then
|
||||||
if [ "$UPDATE" = "no" ]; then
|
if [ "$UPDATE" = "no" ]; then
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-triggers'
|
# Template file for 'xbps-triggers'
|
||||||
pkgname=xbps-triggers
|
pkgname=xbps-triggers
|
||||||
version=0.39
|
version=0.40
|
||||||
short_desc="XBPS triggers"
|
short_desc="XBPS triggers"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://code.google.com/p/xbps"
|
homepage="http://code.google.com/p/xbps"
|
||||||
|
|
Loading…
Reference in a new issue