From 98bd694da32ed5211ee996cb2bb7f67d7363fc18 Mon Sep 17 00:00:00 2001 From: Bojan Smojver Date: Sat, 26 May 2012 11:59:38 +1000 Subject: [PATCH] Correct name of the service. Bump release up for rebuild. --- xrdp.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xrdp.spec b/xrdp.spec index 0ac9a84..231fd68 100644 --- a/xrdp.spec +++ b/xrdp.spec @@ -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 - 0.6.0-0.4 +- do explicit stop/start in order to get xrdp-sesman.service up too + * Sat May 26 2012 Bojan Smojver - 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