Revert "Do explicit stop/start on upgrade, to force xrdp-sesman restart as well."

This reverts commit 5c7d5110a7.

Conflicts:
	xrdp.spec
This commit is contained in:
Bojan Smojver 2012-05-28 10:22:20 +10:00
parent fb46d3e6ae
commit 59d72aa513

View File

@ -118,10 +118,7 @@ fi
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
if [ "`/bin/systemctl is-active xrdp.service`" = 'active' ]; then
/bin/systemctl stop xrdp.service >/dev/null 2>&1 || :
/bin/systemctl start xrdp.service >/dev/null 2>&1 || :
fi
/bin/systemctl try-restart xrdp.service >/dev/null 2>&1 || :
fi
%triggerun -- xrdp < 0.6.0-1
@ -132,10 +129,7 @@ fi
# Run these because the SysV package being removed won't do them
/sbin/chkconfig --del xrdp >/dev/null 2>&1 || :
if [ "`/bin/systemctl is-active xrdp.service`" = 'active' ]; then
/bin/systemctl stop xrdp.service >/dev/null 2>&1 || :
/bin/systemctl start xrdp.service >/dev/null 2>&1 || :
fi
/bin/systemctl try-restart xrdp.service >/dev/null 2>&1 || :
%files