From 0d5dd7c2d57b632f009f134547a7ef1f351d59af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Caama=C3=B1o=20Ruiz?= Date: Mon, 10 Jun 2019 18:58:12 +0200 Subject: rhel: Fix ovn database dir optional on first run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OVN database directory is createid on first run so make ownership handling optional. Fixes: 94e1e8be3187 ("rhel: run ovn with the same user as ovs") Signed-off-by: Jaime CaamaƱo Ruiz Signed-off-by: Ben Pfaff --- rhel/usr_lib_systemd_system_ovn-northd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhel/usr_lib_systemd_system_ovn-northd.service b/rhel/usr_lib_systemd_system_ovn-northd.service index ff510fbde..ea8c191e3 100644 --- a/rhel/usr_lib_systemd_system_ovn-northd.service +++ b/rhel/usr_lib_systemd_system_ovn-northd.service @@ -25,7 +25,7 @@ RemainAfterExit=yes Environment=OVS_RUNDIR=%t/openvswitch OVS_DBDIR=/var/lib/openvswitch EnvironmentFile=-/etc/sysconfig/ovn-northd EnvironmentFile=/run/openvswitch.useropts -ExecStartPre=/usr/bin/chown -R ${OVS_USER_ID} ${OVS_DBDIR} +ExecStartPre=-/usr/bin/chown -R ${OVS_USER_ID} ${OVS_DBDIR} ExecStart=/usr/share/openvswitch/scripts/ovn-ctl \ --ovs-user=${OVS_USER_ID} --ovn-user=${OVS_USER_ID} \ start_northd $OVN_NORTHD_OPTS -- cgit v1.2.1