openvswitch.docker.service 450 B

12345678910111213
  1. [Unit]
  2. After=docker.service
  3. Requires=docker.service
  4. PartOf=docker.service
  5. [Service]
  6. ExecStartPre=-/usr/bin/docker rm -f openvswitch
  7. ExecStart=/usr/bin/docker run --name openvswitch --rm --privileged --net=host --pid=host -v /lib/modules:/lib/modules -v /run:/run -v /sys:/sys:ro -v /etc/origin/openvswitch:/etc/openvswitch {{ openshift.node.ovs_image }}
  8. ExecStop=/usr/bin/docker stop openvswitch
  9. Restart=always
  10. [Install]
  11. WantedBy=multi-user.target