X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=rhel%2Fetc_init.d_openvswitch;h=3d79b6a028f93b39bbd0e6977070dc67994870f8;hb=113269228827043aaca717b5fb11b055e09a4636;hp=a25e624029d2db37e852ce11a5e5c774b27081c4;hpb=5ca1ba484bd9ade5116a49cf241cb98219d7d696;p=sliver-openvswitch.git diff --git a/rhel/etc_init.d_openvswitch b/rhel/etc_init.d_openvswitch index a25e62402..3d79b6a02 100755 --- a/rhel/etc_init.d_openvswitch +++ b/rhel/etc_init.d_openvswitch @@ -31,7 +31,7 @@ test -e /etc/sysconfig/openvswitch && . /etc/sysconfig/openvswitch start () { - set $ovs_ctl ${1-start} + set ovs_ctl ${1-start} set "$@" --system-id=random if test X"$FORCE_COREFILES" != X; then set "$@" --force-corefiles="$FORCE_COREFILES" @@ -48,13 +48,14 @@ start () { set "$@" $OVS_CTL_OPTS "$@" - $ovs_ctl --protocol=gre enable-protocol + ovs_ctl --protocol=gre enable-protocol + ovs_ctl --protocol=udp --dport=8472 enable-protocol touch /var/lock/subsys/openvswitch } stop () { - $ovs_ctl stop + ovs_ctl stop rm -f /var/lock/subsys/openvswitch } @@ -67,7 +68,6 @@ restart () { fi } -ovs_ctl=/usr/share/openvswitch/scripts/ovs-ctl case $1 in start) start @@ -83,10 +83,10 @@ case $1 in # Nothing to do. ;; status) - $ovs_ctl status + ovs_ctl status ;; version) - $ovs_ctl version + ovs_ctl version ;; force-reload-kmod) start force-reload-kmod