etcd.docker.service 715 B

1234567891011121314151617
  1. [Unit]
  2. Description=The Etcd Server container
  3. After={{ openshift_docker_service_name }}.service
  4. Requires={{ openshift_docker_service_name }}.service
  5. PartOf={{ openshift_docker_service_name }}.service
  6. [Service]
  7. EnvironmentFile={{ etcd_conf_file }}
  8. ExecStartPre=-/usr/bin/docker rm -f {{ etcd_service }}
  9. ExecStart=/usr/bin/docker run --name {{ etcd_service }} --rm -v {{ etcd_data_dir }}:{{ etcd_data_dir }}:z -v {{ etcd_conf_dir }}:{{ etcd_conf_dir }}:ro --env-file={{ etcd_conf_file }} --net=host --entrypoint=/usr/bin/etcd {{ etcd_image }}
  10. ExecStop=/usr/bin/docker stop {{ etcd_service }}
  11. SyslogIdentifier=etcd_container
  12. Restart=always
  13. RestartSec=5s
  14. [Install]
  15. WantedBy={{ openshift_docker_service_name }}.service