etcd.docker.service 490 B

12345678910111213
  1. [Unit]
  2. Description=The Etcd Server container
  3. After=docker.service
  4. [Service]
  5. EnvironmentFile=/etc/etcd/etcd.conf
  6. ExecStartPre=-/usr/bin/docker rm -f {{ etcd_service }}
  7. 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 }}
  8. ExecStop=/usr/bin/docker stop {{ etcd_service }}
  9. Restart=always
  10. [Install]
  11. WantedBy=multi-user.target