projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xenserver, rhel, debian: Use ovs-ctl restart.
[openvswitch]
/
rhel
/
etc_init.d_openvswitch
diff --git
a/rhel/etc_init.d_openvswitch
b/rhel/etc_init.d_openvswitch
index ad7579cd2751fa9bc0712be3680f94ad4b6fd6dd..af332c0b577967893600d9d6b202c02d145195e0 100755
(executable)
--- a/
rhel/etc_init.d_openvswitch
+++ b/
rhel/etc_init.d_openvswitch
@@
-61,6
+61,15
@@
stop () {
rm -f /var/lock/subsys/openvswitch
}
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)
ovs_ctl=/usr/share/openvswitch/scripts/ovs-ctl
case $1 in
start)
@@
-70,8
+79,8
@@
case $1 in
stop
;;
restart)
stop
;;
restart)
- s
top
- start
+ s
hift
+ restart "$@"
;;
reload|force-reload)
# Nothing to do.
;;
reload|force-reload)
# Nothing to do.