You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
360 B

9 years ago
9 years ago
9 years ago
  1. [Unit]
  2. Description=etcd2
  3. Conflicts=etcd.service
  4. [Service]
  5. User=etcd
  6. Environment=ETCD_DATA_DIR=/var/lib/etcd2
  7. Environment=ETCD_NAME=%m
  8. {% if inventory_hostname in groups['etcd'] %}
  9. ExecStart={{ bin_dir }}/etcd2
  10. {% else %}
  11. ExecStart={{ bin_dir }}/etcd2 -proxy on
  12. {% endif %}
  13. Restart=always
  14. RestartSec=10s
  15. LimitNOFILE=40000
  16. [Install]
  17. WantedBy=multi-user.target