Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions bindata/network/ovn-kubernetes/common/008-script-lib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,14 @@ data:
MAXLOGFILES="{{.OVNPolicyAuditMaxLogFiles}}"
LOGDIR=$(dirname ${controller_logfile})
# wait a bit for ovn-controller to start
# wait for ovn-controller to start and write its PID file
local retries=0
CONTROLLERPID=""
while [[ 30 -gt "${retries}" ]]; do
(( retries += 1 ))
CONTROLLERPID=$(cat ${controller_pidfile})
if [[ -f "${controller_pidfile}" ]]; then
CONTROLLERPID=$(cat "${controller_pidfile}" 2>/dev/null || true)
fi
if [[ -n "${CONTROLLERPID}" ]]; then
break
fi
Expand Down