1234567891011121314151617 |
- [Unit]
- After={{ openshift.docker.service_name }}.service
- Requires={{ openshift.docker.service_name }}.service
- PartOf={{ openshift.docker.service_name }}.service
- [Service]
- EnvironmentFile=/etc/sysconfig/openvswitch
- 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 }}:${IMAGE_VERSION}
- ExecStartPost=/usr/bin/sleep 5
- ExecStop=/usr/bin/docker stop openvswitch
- SyslogIdentifier=openvswitch
- Restart=always
- RestartSec=5s
- [Install]
- WantedBy={{ openshift.docker.service_name }}.service
|