Make xrdp-sesman.service stop when not needed by xrdp.service.
Also try to restart xrdp-sesman.service. Just restarting xrdp.service not enough.
This commit is contained in:
parent
7e41e2f666
commit
182f0e85f2
@ -1,6 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=xrdp session manager
|
Description=xrdp session manager
|
||||||
After=syslog.target network.target
|
After=syslog.target network.target
|
||||||
|
StopWhenUnneeded=true
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Open source remote desktop protocol (RDP) server
|
Summary: Open source remote desktop protocol (RDP) server
|
||||||
Name: xrdp
|
Name: xrdp
|
||||||
Version: 0.6.0
|
Version: 0.6.0
|
||||||
Release: 0.2%{?dist}
|
Release: 0.3%{?dist}
|
||||||
License: GPLv2+ with exceptions
|
License: GPLv2+ with exceptions
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
URL: http://xrdp.sourceforge.net/
|
URL: http://xrdp.sourceforge.net/
|
||||||
@ -118,6 +118,7 @@ fi
|
|||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
if [ $1 -ge 1 ] ; then
|
if [ $1 -ge 1 ] ; then
|
||||||
# Package upgrade, not uninstall
|
# Package upgrade, not uninstall
|
||||||
|
/bin/systemctl try-restart xrdp-sesman.service >/dev/null 2>&1 || :
|
||||||
/bin/systemctl try-restart xrdp.service >/dev/null 2>&1 || :
|
/bin/systemctl try-restart xrdp.service >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -129,6 +130,7 @@ fi
|
|||||||
|
|
||||||
# Run these because the SysV package being removed won't do them
|
# Run these because the SysV package being removed won't do them
|
||||||
/sbin/chkconfig --del xrdp >/dev/null 2>&1 || :
|
/sbin/chkconfig --del xrdp >/dev/null 2>&1 || :
|
||||||
|
/bin/systemctl try-restart xrdp-sesman.service >/dev/null 2>&1 || :
|
||||||
/bin/systemctl try-restart xrdp.service >/dev/null 2>&1 || :
|
/bin/systemctl try-restart xrdp.service >/dev/null 2>&1 || :
|
||||||
|
|
||||||
|
|
||||||
@ -177,6 +179,10 @@ fi
|
|||||||
%attr(0600,root,root) %verify(not size md5 mtime) %{_sysconfdir}/xrdp/rsakeys.ini
|
%attr(0600,root,root) %verify(not size md5 mtime) %{_sysconfdir}/xrdp/rsakeys.ini
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat May 26 2012 Bojan Smojver <bojan@rexursive.com> - 0.6.0-0.3
|
||||||
|
- also attempt to restart xrdp-sesman.service (just xrdp.service won't do it)
|
||||||
|
- stop xrdp-sesman.service when not needed by xrdp.service
|
||||||
|
|
||||||
* Fri May 25 2012 Bojan Smojver <bojan@rexursive.com> - 0.6.0-0.2
|
* Fri May 25 2012 Bojan Smojver <bojan@rexursive.com> - 0.6.0-0.2
|
||||||
- bump release for rebuild with the correct e-mail address
|
- bump release for rebuild with the correct e-mail address
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user