X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=rhel%2Fetc_init.d_openvswitch;h=55a13a7ed1b05de43ada776813584e37e7871f0c;hb=46528f78e5c0b7484e1735bb774ef2ad92e04593;hp=af332c0b577967893600d9d6b202c02d145195e0;hpb=aad12c5f8f6a15681c525d552bd76afd46a1c08b;p=sliver-openvswitch.git diff --git a/rhel/etc_init.d_openvswitch b/rhel/etc_init.d_openvswitch index af332c0b5..55a13a7ed 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" @@ -45,19 +45,16 @@ start () { if test X"$VSWITCHD_MLOCKALL" != X; then set "$@" --mlockall="$VSWITCHD_MLOCKALL" fi - if test X"$BRCOMPAT" = Xyes; then - set "$@" --brcompat - fi set "$@" $OVS_CTL_OPTS "$@" - $ovs_ctl --protocol=gre enable-protocol + ovs_ctl --protocol=gre enable-protocol touch /var/lock/subsys/openvswitch } stop () { - $ovs_ctl stop + ovs_ctl stop rm -f /var/lock/subsys/openvswitch } @@ -70,7 +67,6 @@ restart () { fi } -ovs_ctl=/usr/share/openvswitch/scripts/ovs-ctl case $1 in start) start @@ -86,10 +82,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