- [Unit]
- After=docker.service
- Requires=docker.service
- PartOf=docker.service
- [Service]
- ExecStartPre=-/usr/bin/docker rm -f openvswitch
- 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 }}
- ExecStop=/usr/bin/docker stop openvswitch
- Restart=always
- [Install]
- WantedBy=multi-user.target
|