2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-22 09:58:01 +00:00

debian: Let *-ctl handle runtime directory.

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>
This commit is contained in:
Han Zhou 2025-01-06 13:09:16 +02:00 committed by Ilya Maximets
parent 3f19558e73
commit 367e0fff23

View File

@ -19,6 +19,3 @@ ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd stop
ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd \ ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd \
--no-record-hostname \ --no-record-hostname \
--no-monitor restart $OVS_CTL_OPTS --no-monitor restart $OVS_CTL_OPTS
RuntimeDirectory=openvswitch
RuntimeDirectoryMode=0755
RuntimeDirectoryPreserve=yes