diff options
author | Jaime Caamaño Ruiz <jcaamano@suse.com> | 2019-06-10 18:58:12 +0200 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2019-06-10 13:48:04 -0700 |
commit | 0d5dd7c2d57b632f009f134547a7ef1f351d59af (patch) | |
tree | b599a9c7c9e6856658d377a5b71be3dc0f3cbe9b /rhel | |
parent | 0186c3807cc4500c5699fcf034df3a995c34885c (diff) | |
download | openvswitch-0d5dd7c2d57b632f009f134547a7ef1f351d59af.tar.gz |
rhel: Fix ovn database dir optional on first run
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 <jcaamano@suse.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'rhel')
-rw-r--r-- | rhel/usr_lib_systemd_system_ovn-northd.service | 2 |
1 files changed, 1 insertions, 1 deletions
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 |