diff options
author | Thomas Graf <tgraf@redhat.com> | 2013-01-25 15:06:57 +0100 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-01-25 10:33:01 -0800 |
commit | 602453000e28ec1076c0482ce13c284765a84409 (patch) | |
tree | fe2d7d794a2a7fca6d34882724a0d7f9ddebe11f /rhel/etc_sysconfig_network-scripts_ifdown-ovs | |
parent | e503cc1993970ef27882a9b922efbd365d9da2be (diff) | |
download | openvswitch-602453000e28ec1076c0482ce13c284765a84409.tar.gz |
rhel: Automatically start openvswitch service before bringing an ovs interface up or down
This patch modifies the ifup/ifdown scripts to automatically
start the openvswitch service before ovs-vsctl is invoked thus
not making it mandatory to auto-start openvswitch on boot.
Signed-off-by: Thomas Graf <tgraf@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'rhel/etc_sysconfig_network-scripts_ifdown-ovs')
-rwxr-xr-x | rhel/etc_sysconfig_network-scripts_ifdown-ovs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rhel/etc_sysconfig_network-scripts_ifdown-ovs b/rhel/etc_sysconfig_network-scripts_ifdown-ovs index 19047d8ba..d2a2f4bb9 100755 --- a/rhel/etc_sysconfig_network-scripts_ifdown-ovs +++ b/rhel/etc_sysconfig_network-scripts_ifdown-ovs @@ -34,6 +34,8 @@ if [ ! -x ${OTHERSCRIPT} ]; then OTHERSCRIPT="/etc/sysconfig/network-scripts/ifdown-eth" fi +[ -f /var/lock/subsys/openvswitch ] || /sbin/service openvswitch start + case "$TYPE" in OVSBridge) ${OTHERSCRIPT} ${CONFIG} $2 |