Author: jsrain Date: Fri Oct 14 07:49:52 2011 New Revision: 66433 URL: http://svn.opensuse.org/viewcvs/yast?rev=66433&view=rev Log: add a possibility to restart a running service (bnc#723623) Modified: trunk/runlevel/VERSION trunk/runlevel/package/yast2-runlevel.changes trunk/runlevel/src/ui.ycp Modified: trunk/runlevel/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/runlevel/VERSION?rev=66433&r1=66432&r2=66433&view=diff ============================================================================== --- trunk/runlevel/VERSION (original) +++ trunk/runlevel/VERSION Fri Oct 14 07:49:52 2011 @@ -1 +1 @@ -2.21.2 +2.21.3 Modified: trunk/runlevel/package/yast2-runlevel.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/runlevel/package/yast2-runlevel.changes?rev=66433&r1=66432&r2=66433&view=diff ============================================================================== --- trunk/runlevel/package/yast2-runlevel.changes (original) +++ trunk/runlevel/package/yast2-runlevel.changes Fri Oct 14 07:49:52 2011 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Oct 13 10:07:35 UTC 2011 - jsrain@site + +- add a possibility to restart a running service (bnc#723623) +- 2.21.3 + +------------------------------------------------------------------- Thu Sep 29 13:34:06 CEST 2011 - visnov@suse.cz - set dialog title Modified: trunk/runlevel/src/ui.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/runlevel/src/ui.ycp?rev=66433&r1=66432&r2=66433&view=diff ============================================================================== --- trunk/runlevel/src/ui.ycp (original) +++ trunk/runlevel/src/ui.ycp Fri Oct 14 07:49:52 2011 @@ -1129,6 +1129,8 @@ // menu item `item (`id (`stop), _("S&top now ...")), // menu item + `item (`id (`restart), _("R&estart now ...")), + // menu item `item (`id (`status), _("&Refresh status ...")), ]), `HStretch (), @@ -1280,8 +1282,13 @@ Popup::Message (_("Each service was enabled\nin the appropriate runlevels.")); } } - else if (`start == ret || `stop == ret) + else if (`start == ret || `stop == ret || `restart == ret) { + // restarting a service which is not started equals to its starting + // and dependency check is needed + if (`restart == ret && 0 != Service::Status (current_service)) { + ret = `start; + } boolean really = true; if (`stop == ret && contains (["xdm", "earlyxdm"], current_service)) { @@ -1293,7 +1300,13 @@ } if (really) { - StartStopServiceDep (current_service, ret == `start); + if (ret == `restart) { + list ret = startStopService (current_service, "restart"); + y2internal ("Ret: %1", ret); + Popup::LongText ("", `RichText(ret[1]:""), 70, 5); + } else { + StartStopServiceDep (current_service, ret == `start); + } } } else if (`status == ret) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org