[ovs-dev] [PATCH] rhel/systemd: Prevent deletion of runtime directory.

Gurucharan Shetty guru at ovn.org
Thu Mar 29 21:16:50 UTC 2018


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: aconole at redhat.com
Signed-off-by: Gurucharan Shetty <guru at ovn.org>
---
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



More information about the dev mailing list