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

wait for etcd start

parent faac84a3
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