Correct name of the service.

Bump release up for rebuild.
This commit is contained in:
Bojan Smojver 2012-05-26 11:59:38 +10:00
parent 5c7d5110a7
commit 98bd694da3

View File

@ -1,7 +1,7 @@
Summary: Open source remote desktop protocol (RDP) server
Name: xrdp
Version: 0.6.0
Release: 0.3%{?dist}
Release: 0.4%{?dist}
License: GPLv2+ with exceptions
Group: Applications/Internet
URL: http://xrdp.sourceforge.net/
@ -118,7 +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
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
@ -132,7 +132,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
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
@ -183,6 +183,9 @@ fi
%attr(0600,root,root) %verify(not size md5 mtime) %{_sysconfdir}/xrdp/rsakeys.ini
%changelog
* Sat May 26 2012 Bojan Smojver <bojan@rexursive.com> - 0.6.0-0.4
- do explicit stop/start in order to get xrdp-sesman.service up too
* 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