Stop services on package removal (see bug 1349083)
This commit is contained in:
parent
7e4969065f
commit
993073e124
@ -99,6 +99,10 @@ fi
|
|||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun xrdp.service
|
%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
|
%postun
|
||||||
%systemd_postun_with_restart xrdp.service
|
%systemd_postun_with_restart xrdp.service
|
||||||
|
Loading…
Reference in New Issue
Block a user