File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -114,17 +114,16 @@ start_etcd() {
114
114
--listen-client-urls http://127.0.0.1:${ETCD_PORT} \
115
115
--advertise-client-urls http://127.0.0.1:${ETCD_PORT} \
116
116
--listen-peer-urls http://127.0.0.1:${ETCD_PEER_PORT} \
117
- --initial-advertise-peer-urls http://127.0.0.1:${ETCD_PEER_PORT} \
118
- 1>> /dev/null 2>&1 &
117
+ --initial-advertise-peer-urls http://127.0.0.1:${ETCD_PEER_PORT} &
119
118
ETCD_PID=$!
120
119
# Wait until we can write to etcd.
121
120
for i in $( seq 240) ; do
121
+ sleep 0.5
122
122
ETCDCTL_API=" ${API_VERSION} " ${ETCDCTL_CMD} ' etcd_version' ${START_VERSION}
123
123
if [ " $? " -eq " 0" ]; then
124
124
echo " Etcd on port ${ETCD_PORT} is up."
125
125
return 0
126
126
fi
127
- sleep 0.5
128
127
done
129
128
echo " Timeout while waiting for etcd on port ${ETCD_PORT} "
130
129
return 1
You can’t perform that action at this time.
0 commit comments