mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 01:51:26 +00:00
This causes the /var/run/openvswitch directory being recreated when service "stop" encounters failures, which causes container mount failure after service restart of openvswitch-switch on Ubuntu. The same was done in rhel service. See [1]. [1] 7a65e5a9252a rhel: let *-ctl handle runtime directory Acked-by: Roi Dayan <roid@nvidia.com> Acked-by: Frode Nordahl <fnordahl@ubuntu.com> Signed-off-by: Han Zhou <hzhou@ovn.org> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
22 lines
771 B
Desktop File
22 lines
771 B
Desktop File
[Unit]
|
|
Description=Open vSwitch Database Unit
|
|
After=systemd-journald.socket network-pre.target dpdk.service local-fs.target
|
|
Before=network.target networking.service
|
|
PartOf=openvswitch-switch.service
|
|
DefaultDependencies=no
|
|
|
|
[Service]
|
|
LimitNOFILE=1048576
|
|
Type=forking
|
|
PIDFile=/run/openvswitch/ovsdb-server.pid
|
|
Restart=on-failure
|
|
EnvironmentFile=-/etc/default/openvswitch-switch
|
|
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
|
|
--no-ovs-vswitchd --no-monitor --system-id=random \
|
|
--no-record-hostname \
|
|
start $OVS_CTL_OPTS
|
|
ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd stop
|
|
ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd \
|
|
--no-record-hostname \
|
|
--no-monitor restart $OVS_CTL_OPTS
|