| # Try to join an new cluster | |
| /usr/local/bin/etcd \ | |
| --name ${NAME} \ | |
| --debug \ | |
| --log-package-levels etcdmain=DEBUG,etcdserver=DEBUG \ | |
| --data-dir $DATADIR \ | |
| --initial-advertise-peer-urls http://${IP}:2380 \ | |
| --listen-peer-urls http://${IP}:2380 \ | |
| --listen-client-urls http://${IP}:2379,http://127.0.0.1:2379 \ | |
| --advertise-client-urls http://${IP}:2379 \ | |
| --initial-cluster-token etcd-cluster-1 \ | |
| --initial-cluster ${INIT_CLUSTER} \ | |
| --initial-cluster-state new |