openvswitch.docker.service 697 B

1234567891011121314151617
  1. [Unit]
  2. After={{ openshift.docker.service_name }}.service
  3. Requires={{ openshift.docker.service_name }}.service
  4. PartOf={{ openshift.docker.service_name }}.service
  5. [Service]
  6. EnvironmentFile=/etc/sysconfig/openvswitch
  7. ExecStartPre=-/usr/bin/docker rm -f openvswitch
  8. 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 }}:${IMAGE_VERSION}
  9. ExecStartPost=/usr/bin/sleep 5
  10. ExecStop=/usr/bin/docker stop openvswitch
  11. SyslogIdentifier=openvswitch
  12. Restart=always
  13. RestartSec=5s
  14. [Install]
  15. WantedBy={{ openshift.docker.service_name }}.service