From 367e0fff23a15217f15c7cf2c5243e3376dc93a3 Mon Sep 17 00:00:00 2001 From: Han Zhou Date: Mon, 6 Jan 2025 13:09:16 +0200 Subject: [PATCH] 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 Acked-by: Frode Nordahl Signed-off-by: Han Zhou Signed-off-by: Ilya Maximets --- debian/openvswitch-switch.ovsdb-server.service | 3 --- 1 file changed, 3 deletions(-) diff --git a/debian/openvswitch-switch.ovsdb-server.service b/debian/openvswitch-switch.ovsdb-server.service index e0b0a727e..35654d705 100644 --- a/debian/openvswitch-switch.ovsdb-server.service +++ b/debian/openvswitch-switch.ovsdb-server.service @@ -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 \ --no-record-hostname \ --no-monitor restart $OVS_CTL_OPTS -RuntimeDirectory=openvswitch -RuntimeDirectoryMode=0755 -RuntimeDirectoryPreserve=yes