git://git.onelab.eu
/
sliver-openvswitch.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' into forward-port
[sliver-openvswitch.git]
/
planetlab
/
scripts
/
start_vswitchd
1
#!/bin/bash
2
3
PIDF=/usr/local/var/run/openvswitch/ovs-vswitchd.pid
4
5
if [ ! -f "$PIDF" ]; then
6
sudo ovs-vswitchd --pidfile --detach --log-file >/dev/null
7
fi
8
while [ ! -f "$PIDF" ]; do
9
echo "Waiting for ovs-vswitchd to start..." >&2
10
sleep 1;
11
done
12
cat "$PIDF"