cgswong

etcd2.service

Jun 10th, 2015
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. # /usr/lib64/systemd/system/etcd2.service
  2. [Unit]
  3. Description=etcd2
  4. Conflicts=etcd.service
  5.  
  6. [Service]
  7. User=etcd
  8. Environment=ETCD_DATA_DIR=/var/lib/etcd2
  9. Environment=ETCD_NAME=%m
  10. ExecStart=/usr/bin/etcd2
  11. Restart=always
  12. RestartSec=10s
  13. LimitNOFILE=40000
  14.  
  15. # /run/systemd/system/etcd2.service.d/20-cloudinit.conf
  16. [Service]
  17. Environment="ETCD_ADVERTISE_CLIENT_URLS=http://172.17.8.101:2379"
  18. Environment="ETCD_DISCOVERY=https://discovery.etcd.io/c7b23efaed9a353d69bef0aee1aceda9"
  19. Environment="ETCD_INITIAL_ADVERTISE_PEER_URLS=http://172.17.8.101:2380"
  20. Environment="ETCD_LISTEN_CLIENT_URLS=http://172.17.8.101:2379,http://127.0.0.1:2379"
  21. Environment="ETCD_LISTEN_PEER_URLS=http://172.17.8.101:2380"
Advertisement
Add Comment
Please, Sign In to add comment