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
321 B

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