Stop services on package removal (see bug 1349083)

This commit is contained in:
Pavel Roskin 2017-01-23 22:51:59 -08:00
parent 7e4969065f
commit 993073e124

View File

@ -99,6 +99,10 @@ fi
%preun
%systemd_preun xrdp.service
if [ $1 -eq 0 ]; then
# Stop services on package removal (see bug 1349083)
systemctl stop xrdp.service > /dev/null 2>&1 || :
fi
%postun
%systemd_postun_with_restart xrdp.service