etcd.docker.service 579 B

1234567891011121314151617
  1. [Unit]
  2. Description=The Etcd Server container
  3. After=docker.service
  4. Requires=docker.service
  5. PartOf=docker.service
  6. [Service]
  7. EnvironmentFile=/etc/etcd/etcd.conf
  8. ExecStartPre=-/usr/bin/docker rm -f {{ etcd_service }}
  9. ExecStart=/usr/bin/docker run --name {{ etcd_service }} --rm -v /var/lib/etcd:/var/lib/etcd:z -v /etc/etcd:/etc/etcd:z --env-file=/etc/etcd/etcd.conf --net=host --entrypoint=/usr/bin/etcd {{ openshift.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=docker.service