[ovs-git] [openvswitch/ovs] 7a65e5: rhel: let *-ctl handle runtime directory

Jaime Caamaño Ruiz noreply at github.com
Mon Jun 10 20:51:32 UTC 2019

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 7a65e5a9252ac06df62707a571931f501747ecfc
  Author: Jaime Caamaño Ruiz <jcaamano at suse.com>
  Date:   2019-06-10 (Mon, 10 Jun 2019)

  Changed paths:
    M rhel/usr_lib_systemd_system_ovsdb-server.service

  Log Message:
  rhel: let *-ctl handle runtime directory

Recent versions of systemd restores RuntimeDirectory ownership to the
unit's User in between execution of *Exec directives (see [1]). Using
ExecStartPre to reset RuntimeDirectory ownership to OVS_USER no longer
works as expected.

The ctl scripts already handle creation of the runtime directory with
correct ownership and permissions so we can basically remove
RuntimeDirectory from systemd unit file. There is still need to handle
ownsership to cover some upgrade scenarios, but success of that will be
optional as the directory itself wont exist at first time run.

[1] https://github.com/systemd/systemd/issues/12713

Signed-off-by: Jaime Caamaño Ruiz <jcaamano at suse.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>

More information about the git mailing list