mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
14 lines
430 B
Desktop File
14 lines
430 B
Desktop File
[Unit]
|
|
Description=Add etcd2 node to existing cluster
|
|
Conflicts=etcd2.service etcd2-backup.service
|
|
Before=etcd2.service etcd2-backup.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStartPre=/usr/bin/rm -rf ${ETCD_DATA_DIR}/member
|
|
ExecStartPre=/usr/bin/chown -R etcd:etcd ${ETCD_DATA_DIR}
|
|
ExecStart=/opt/bin/etcd2-join ${ETCD_RESTORE_MASTER_ADV_PEER_URLS} ${ETCD_NAME} ${ETCD_INITIAL_ADVERTISE_PEER_URLS}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|