Currently, when we do a 'service openvswitch stop',
'/var/run/openvswitch' gets deleted. This is a problem
if you have other users (like OVN) using the same
runtime directory since we delete all the files
related to ovsdb-server backing OVN's databases.

This commit fixes it by removing the runtime directory
information from the systemd unit file.

CC: [email protected]
Signed-off-by: Gurucharan Shetty <[email protected]>
---
I don't know whether there are other drawbacks of removing
'RuntimeDirectory'
---
 rhel/usr_lib_systemd_system_ovsdb-server.service | 2 --
 1 file changed, 2 deletions(-)

diff --git a/rhel/usr_lib_systemd_system_ovsdb-server.service 
b/rhel/usr_lib_systemd_system_ovsdb-server.service
index e05742d..5fac90b 100644
--- a/rhel/usr_lib_systemd_system_ovsdb-server.service
+++ b/rhel/usr_lib_systemd_system_ovsdb-server.service
@@ -21,5 +21,3 @@ ExecStop=/usr/share/openvswitch/scripts/ovs-ctl 
--no-ovs-vswitchd stop
 ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd \
            ${OVSUSER} \
            --no-monitor restart $OPTIONS
-RuntimeDirectory=openvswitch
-RuntimeDirectoryMode=0755
-- 
2.7.4

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to