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.

18 lines
333 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. EnvironmentFile=/etc/etcd2-environment
  7. {% if inventory_hostname in groups['etcd'] %}
  8. ExecStart={{ bin_dir }}/etcd2
  9. {% else %}
  10. ExecStart={{ bin_dir }}/etcd2 -proxy on
  11. {% endif %}
  12. Restart=always
  13. RestartSec=10s
  14. LimitNOFILE=40000
  15. [Install]
  16. WantedBy=multi-user.target