6 OVS_DB_PID_FILE
=/var
/run
/openvswitch
/ovsdb-server.pid
7 OVS_VS_PID_FILE
=/var
/run
/openvswitch
/ovs-vswitchd.pid
8 OVS_BC_PID_FILE
=/var
/run
/openvswitch
/ovs-brcompatd.pid
13 stat_busy
"Starting OpenVSwitch DB server"
14 /usr
/sbin
/ovsdb-server
/etc
/openvswitch
/ovs-vswitchd.conf.db \
15 --remote=punix
:/var
/run
/openvswitch
/db.sock \
16 --remote=db
:Open_vSwitch
,manager_options \
17 --private-key=db
:SSL
,private_key \
18 --certificate=db
:SSL
,certificate \
19 --bootstrap-ca-cert=db
:SSL
,ca_cert \
20 --pidfile=${OVS_DB_PID_FILE} \
28 stat_busy
"Starting openvswitch daemon"
29 /usr
/sbin
/ovs-vswitchd unix
:/var
/run
/openvswitch
/db.sock \
30 --pidfile=${OVS_VS_PID_FILE} \
39 stat_busy
"Starting openvswitch bridge compatibility"
40 ovs-brcompatd
--pidfile=${OVS_BC_PID_FILE} --detach
47 chgrp ovs
/var
/run
/openvswitch
/*
48 chmod g
+rw
/var
/run
/openvswitch
/*
50 add_daemon openvswitch
53 stat_busy
"Stopping openvswitch bridge compatibility"
54 kill $
(< ${OVS_BC_PID_FILE}) &> /dev
/null
60 rm ${OVS_BC_PID_FILE} &> /dev
/null
62 stat_busy
"Stopping openvswitch daemon"
63 kill $
(< ${OVS_VS_PID_FILE}) &> /dev
/null
69 rm ${OVS_VS_PID_FILE} &> /dev
/null
71 stat_busy
"Stopping openvswitch DB server"
72 kill $
(< ${OVS_DB_PID_FILE}) &> /dev
/null
86 echo "usage: $0 {start|stop|restart}"