Force default location pidfiles to be created at DB creation time, so utils like ovs-appctl can find the PID.

This commit is contained in:
cokegen 2022-07-12 15:26:16 -03:00
parent 526c87b819
commit 2df9a11a80

View File

@ -20,8 +20,8 @@ if [ ! -f "/etc/openvswitch/conf.db" ]
then
ovsdb-tool create /etc/openvswitch/conf.db /usr/share/openvswitch/vswitch.ovsschema
ovsdb-server --detach --remote=punix:/var/run/openvswitch/db.sock
ovs-vswitchd --detach
ovsdb-server --detach --pidfile --remote=punix:/var/run/openvswitch/db.sock
ovs-vswitchd --detach --pidfile
ovs-vsctl --no-wait init
x=0