etcd2-join.service 430 B

12345678910111213
  1. [Unit]
  2. Description=Add etcd2 node to existing cluster
  3. Conflicts=etcd2.service etcd2-backup.service
  4. Before=etcd2.service etcd2-backup.service
  5. [Service]
  6. Type=oneshot
  7. ExecStartPre=/usr/bin/rm -rf ${ETCD_DATA_DIR}/member
  8. ExecStartPre=/usr/bin/chown -R etcd:etcd ${ETCD_DATA_DIR}
  9. ExecStart=/opt/bin/etcd2-join ${ETCD_RESTORE_MASTER_ADV_PEER_URLS} ${ETCD_NAME} ${ETCD_INITIAL_ADVERTISE_PEER_URLS}
  10. [Install]
  11. WantedBy=multi-user.target