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

  1. [Unit]
  2. Description=etcd docker wrapper
  3. Wants=docker.socket
  4. After=docker.service
  5. [Service]
  6. User=root
  7. PermissionsStartOnly=true
  8. EnvironmentFile=/etc/etcd.env
  9. ExecStart={{ bin_dir }}/etcd
  10. ExecStartPre=-{{ docker_bin_dir }}/docker rm -f {{ etcd_member_name | default("etcd") }}
  11. ExecStop={{ docker_bin_dir }}/docker stop {{ etcd_member_name | default("etcd") }}
  12. Restart=always
  13. RestartSec=15s
  14. TimeoutStartSec=30s
  15. [Install]
  16. WantedBy=multi-user.target