From Rude Hummingbird, 2 Weeks ago, written in Plain Text.
  1. [Unit]
  2. Description=etcd service
  3.  
  4. [Service]
  5. User=root
  6. Type=notify
  7. ExecStart=/usr/bin/etcd \
  8.  --name etcd-1 \
  9.  --data-dir /var/lib/etcd \
  10.  --initial-advertise-peer-urls http://172.31.30.219:18990 \
  11.  --listen-peer-urls http://172.31.30.219:18990 \
  12.  --listen-client-urls http://172.31.30.219:18999,http://127.0.0.1:18999 \
  13.  --advertise-client-urls http://172.31.30.219:18999 \
  14.  --initial-cluster-token etcd-cluster-1 \
  15.  --initial-cluster etcd-3=http://94.130.177.201:18990,etcd-2=http://94.130.177.109:18990,etcd-1=http://172.31.30.219:18990 \
  16.  --initial-cluster-state existing \
  17.  --heartbeat-interval 1000 \
  18.  --election-timeout 5000
  19. Restart=on-failure
  20. RestartSec=5
  21.  
  22. [Install]
  23. WantedBy=multi-user.target
captcha