start_ovsdb__() {
local DB=$1 db=$2 schema_name=$3 table_name=$4
- local pid
+ local db_pid_file
local cluster_local_addr
local cluster_local_port
local cluster_local_proto
local ovn_db_ssl_key
local ovn_db_ssl_cert
local ovn_db_ssl_cacert
- eval pid=\$DB_${DB}_PID
+ eval db_pid_file=\$DB_${DB}_PID
eval cluster_local_addr=\$DB_${DB}_CLUSTER_LOCAL_ADDR
eval cluster_local_port=\$DB_${DB}_CLUSTER_LOCAL_PORT
eval cluster_local_proto=\$DB_${DB}_CLUSTER_LOCAL_PROTO
eval ovn_db_ssl_cacert=\$OVN_${DB}_DB_SSL_CA_CERT
# Check and eventually start ovsdb-server for DB
- if pidfile_is_running $pid; then
+ if pidfile_is_running $db_pid_file; then
return
fi
set ovsdb-server
set "$@" $log --log-file=$logfile
- set "$@" --remote=punix:$sock --pidfile=$pid
+ set "$@" --remote=punix:$sock --pidfile=$db_pid_file
set "$@" --unixctl=ovn${db}_db.ctl
[ "$OVS_USER" != "" ] && set "$@" --user "$OVS_USER"