diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2011-04-05 21:00:27 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-04-05 21:00:27 -0500 |
commit | e3e6a8e2e8aaae17ad1996b70d2bfddb295506e1 (patch) | |
tree | 5ccac38f7132e83f89056c189500d27333713f36 /network/openvswitch/rc.openvswitch | |
parent | eddeeef9154c8dfd895e667facbdfc32a95e7f34 (diff) | |
download | slackbuilds-e3e6a8e2e8aaae17ad1996b70d2bfddb295506e1.tar.gz |
network/openvswitch: Removed (build failure)
The code in upstream's git repo might build, but it's not
even in a beta status yet, so it will have to wait (but of
course the SBo maintainer is free to begin testing already)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/openvswitch/rc.openvswitch')
-rw-r--r-- | network/openvswitch/rc.openvswitch | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/network/openvswitch/rc.openvswitch b/network/openvswitch/rc.openvswitch deleted file mode 100644 index a9244f9dfb..0000000000 --- a/network/openvswitch/rc.openvswitch +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/sh -# Start/stop/restart openvswitch. - -# To start Open vSwitch automatically at boot, be sure this script is -# executable: -# -# % chmod 755 /etc/rc.d/rc.openvswitch - -# Before you can run Open vSwitch daemon, you must have a database. To -# install an initial database, perform the following as root: -# -# % modprobe openvswitch_mod -# % ovsdb-tool create /etc/openvswitch/ovs-vswitchd.conf.db /usr/doc/openvswitch-1.0.1/schema/vswitch.ovsschema -# - -# Module to make Open vSwitch compatible with Linux bridge utils: -BRCOMPAT=0 - -SOCKET=/var/run/openvswitch/db.sock -VSPID=/var/run/openvswitch/ovs-vswitchd.pid -DBPID=/var/run/openvswitch/ovsdb-server.pid - -# Insert kernel driver for Open vSwitch: -/sbin/modprobe openvswitch_mod - -# Insert kernel driver for VLANs: -/sbin/modprobe 8021q - -# Insert kernel driver for bridge util compatibility: -if [ $BRCOMPAT -ne 0 ] ; then - /sbin/modprobe brcompat_mod -fi - -# Start openvswitch: -openvswitch_start() { - echo "Starting openvswitch: /etc/rc.d/rc.openvswitch" - /usr/sbin/ovsdb-server /etc/openvswitch/ovs-vswitchd.conf.db --remote=punix:$SOCKET --detach --pidfile=$DBPID - /usr/bin/ovs-vsctl --no-wait init - /usr/sbin/ovs-vswitchd unix:$SOCKET --detach --pidfile=$VSPID -} - -# Stop openvswitch: -openvswitch_stop() { - echo "Stopping openvswitch: /etc/rc.d/rc.openvswitch" - if [ -e $VSPID ]; then - pid=$(cat $VSPID) - /usr/bin/ovs-appctl -t /var/run/openvswitch/ovs-vswitchd.$pid.ctl exit - fi - if [ -e $DBPID ]; then - pid=$(cat $DBPID) - /usr/bin/ovs-appctl -t /var/run/openvswitch/ovsdb-server.$pid.ctl exit - fi -} - -case "$1" in -'start') - openvswitch_start - ;; -'stop') - openvswitch_stop - ;; -'restart') - openvswitch_stop - openvswitch_start - ;; -*) - echo "usage $0 start|stop|restart" -esac |