Skip to content
Snippets Groups Projects
Commit 8178ee45 authored by scott.wang's avatar scott.wang
Browse files

wait for etcd start

parent cb529f6c
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,8 @@ start() {
--initial-cluster-token ${cluster_name} \
--initial-cluster etcd_node0=http://${peer0_ip}:${peer0_peer_port} \
--initial-cluster-state new >> ${log_dir}/${name}.log 2>&1 &
sleep 5
PID=`ps aux | grep -w "name=${name}" | grep ${!client_port} | grep -v grep | awk '{print $2}'`
if [ "$PID" != "" ];
then
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment