blob: 3ec2c26b22aa8ba7e1f66a50b4aee67f61d1a26f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
LOG_FILE="/var/log/openvswitch/ovs-vswitchd.log"
DB_FILE="/etc/openvswitch/conf.db"
UNIXSOCK_DIR="/var/run/openvswitch"
UNIXSOCK="${UNIXSOCK_DIR}/db.sock"
CMD="/usr/sbin/ovs-vswitchd"
ARGS="unix:${UNIXSOCK} -vconsole:emer -vsyslog:err -vfile:info --mlockall --log-file=${LOG_FILE}"
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Execute config strategy
set_configs
modprobe openvswitch
mkdir -p "${UNIXSOCK_DIR}"
exec $CMD $ARGS
|