diff --git a/xrdp.spec b/xrdp.spec index d9dd3d9..8b09712 100644 --- a/xrdp.spec +++ b/xrdp.spec @@ -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