We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d2bd842 + 67f31ae commit 2043f29Copy full SHA for 2043f29
1 file changed
bindata/network/ovn-kubernetes/common/008-script-lib.yaml
@@ -125,11 +125,14 @@ data:
125
MAXLOGFILES="{{.OVNPolicyAuditMaxLogFiles}}"
126
LOGDIR=$(dirname ${controller_logfile})
127
128
- # wait a bit for ovn-controller to start
+ # wait for ovn-controller to start and write its PID file
129
local retries=0
130
+ CONTROLLERPID=""
131
while [[ 30 -gt "${retries}" ]]; do
132
(( retries += 1 ))
- CONTROLLERPID=$(cat ${controller_pidfile})
133
+ if [[ -f "${controller_pidfile}" ]]; then
134
+ CONTROLLERPID=$(cat "${controller_pidfile}" 2>/dev/null || true)
135
+ fi
136
if [[ -n "${CONTROLLERPID}" ]]; then
137
break
138
fi
0 commit comments