Hello community,

here is the log from the commit of package openvswitch for openSUSE:Factory 
checked in at 2013-12-06 11:46:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openvswitch (Old)
 and      /work/SRC/openSUSE:Factory/.openvswitch.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "openvswitch"

Changes:
--------
--- /work/SRC/openSUSE:Factory/openvswitch/openvswitch.changes  2013-11-26 
06:12:38.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.openvswitch.new/openvswitch.changes     
2013-12-06 11:46:35.000000000 +0100
@@ -1,0 +2,6 @@
+Wed Dec  4 11:44:02 CET 2013 - jsuch...@suse.cz
+
+- added try-restart action to openvswitch-switch init script
+  (bnc#849222)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ openvswitch-switch.init ++++++
--- /var/tmp/diff_new_pack.fGsuiY/_old  2013-12-06 11:46:36.000000000 +0100
+++ /var/tmp/diff_new_pack.fGsuiY/_new  2013-12-06 11:46:36.000000000 +0100
@@ -25,6 +25,9 @@
 
 (test -x /usr/sbin/ovs-vswitchd && test -x /usr/sbin/ovsdb-server) || exit 0
 
+. /etc/rc.status
+rc_reset
+
 . /usr/share/openvswitch/scripts/ovs-lib
 test -e /etc/sysconfig/openvswitch-switch && . 
/etc/sysconfig/openvswitch-switch
 
@@ -80,12 +83,26 @@
     reload | force-reload)
         # The OVS daemons keep up-to-date.
         ;;
+    try-restart|condrestart)
+        #restart the service if the service is already running
+        if test "$1" = "condrestart"; then
+          echo "${attn} Use try-restart ${done}(LSB)${attn} rather than 
condrestart ${warn}(RH)${norm}"
+        fi
+        $0 status
+        if test $? = 0; then
+          $0 restart
+        else
+          rc_reset # Not running is not a failure.
+        fi
+        rc_status # Remember status and be quiet
+        ;;
     restart)
         stop
         start
         ;;
     status)
         ovs_ctl status
+        exit $?
         ;;
     force-reload-kmod)
         start force-reload-kmod
@@ -94,7 +111,7 @@
         load_kmod
         ;;
     *)
-        echo "Usage: $0 
{start|stop|restart|force-reload|status|force-stop|force-reload-kmod|load-kmod}"
 >&2
+        echo "Usage: $0 
{start|stop|restart|try-restart|force-reload|status|force-stop|force-reload-kmod|load-kmod}"
 >&2
         exit 1
         ;;
 esac

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to