Author: jsrain Date: Fri Oct 14 07:49:48 2011 New Revision: 66432 URL: http://svn.opensuse.org/viewcvs/yast?rev=66432&view=rev Log: add a possibility to restart a running service (bnc#723623) Modified: branches/SuSE-Code-11-SP2-Branch/runlevel/VERSION branches/SuSE-Code-11-SP2-Branch/runlevel/package/yast2-runlevel.changes branches/SuSE-Code-11-SP2-Branch/runlevel/src/ui.ycp Modified: branches/SuSE-Code-11-SP2-Branch/runlevel/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/runlevel/VERSION?rev=66432&r1=66431&r2=66432&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/runlevel/VERSION (original) +++ branches/SuSE-Code-11-SP2-Branch/runlevel/VERSION Fri Oct 14 07:49:48 2011 @@ -1 +1 @@ -2.17.8 +2.17.9 Modified: branches/SuSE-Code-11-SP2-Branch/runlevel/package/yast2-runlevel.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/runlevel/package/yast2-runlevel.changes?rev=66432&r1=66431&r2=66432&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/runlevel/package/yast2-runlevel.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/runlevel/package/yast2-runlevel.changes Fri Oct 14 07:49:48 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.17.9 + +------------------------------------------------------------------- Wed Jan 5 13:58:24 CET 2011 - locilka@suse.cz - Fixed services proposal (BNC #572736) Modified: branches/SuSE-Code-11-SP2-Branch/runlevel/src/ui.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/runlevel/src/ui.ycp?rev=66432&r1=66431&r2=66432&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/runlevel/src/ui.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/runlevel/src/ui.ycp Fri Oct 14 07:49:48 2011 @@ -1103,6 +1103,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 (), @@ -1254,8 +1256,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)) { @@ -1267,7 +1274,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