[ovs-dev] [PATCH] redhat: change variable used for non-root user support

Timothy Redaelli tredaelli at redhat.com
Tue Nov 20 19:04:40 UTC 2018


In DPDK 18.08 the runtime config file has changed and $XDG_RUNTIME_DIR
is used instead of $HOME.

This commit changes the variable to be used for DPDK semi-persistent RTE
configuration from $HOME to $XDG_RUNTIME_DIR.

Signed-off-by: Timothy Redaelli <tredaelli at redhat.com>
---
 rhel/usr_lib_systemd_system_ovs-vswitchd.service.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
index 11b34c686..525deae0b 100644
--- a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
+++ b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
@@ -10,7 +10,7 @@ PartOf=openvswitch.service
 [Service]
 Type=forking
 Restart=on-failure
-Environment=HOME=/var/run/openvswitch
+Environment=XDG_RUNTIME_DIR=/var/run/openvswitch
 EnvironmentFile=/etc/openvswitch/default.conf
 EnvironmentFile=-/etc/sysconfig/openvswitch
 EnvironmentFile=-/run/openvswitch/useropts
-- 
2.19.1



More information about the dev mailing list