xenserver, rhel, debian: Use ovs-ctl restart.
[openvswitch] / rhel / etc_init.d_openvswitch
index ad7579cd2751fa9bc0712be3680f94ad4b6fd6dd..af332c0b577967893600d9d6b202c02d145195e0 100755 (executable)
@@ -61,6 +61,15 @@ stop () {
     rm -f /var/lock/subsys/openvswitch
 }
 
+restart () {
+    if [ "$1" = "--save-flows=yes" ]; then
+        start restart
+    else
+        stop
+        start
+    fi
+}
+
 ovs_ctl=/usr/share/openvswitch/scripts/ovs-ctl
 case $1 in
     start)
@@ -70,8 +79,8 @@ case $1 in
         stop
         ;;
     restart)
-        stop
-        start
+        shift
+        restart "$@"
         ;;
     reload|force-reload)
         # Nothing to do.