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

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