X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=rhel%2Fetc_init.d_openvswitch;fp=rhel%2Fetc_init.d_openvswitch;h=af332c0b577967893600d9d6b202c02d145195e0;hb=aad12c5f8f6a15681c525d552bd76afd46a1c08b;hp=ad7579cd2751fa9bc0712be3680f94ad4b6fd6dd;hpb=03d589afc85bd3a7bb29c10bcd366835b1253e97;p=openvswitch diff --git a/rhel/etc_init.d_openvswitch b/rhel/etc_init.d_openvswitch index ad7579cd..af332c0b 100755 --- a/rhel/etc_init.d_openvswitch +++ b/rhel/etc_init.d_openvswitch @@ -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.