From e833a3815b204b5566e1718e1ede6c52caa308bb Mon Sep 17 00:00:00 2001 From: Alexey Shabalin Date: Fri, 21 Aug 2020 04:18:52 +0300 Subject: [PATCH] /var/run -> /run --- rhel/etc_logrotate.d_ovn | 4 ++-- rhel/usr_lib_systemd_system_ovn-controller.service | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rhel/etc_logrotate.d_ovn b/rhel/etc_logrotate.d_ovn index a351ec3..4e32042 100644 --- a/rhel/etc_logrotate.d_ovn +++ b/rhel/etc_logrotate.d_ovn @@ -13,8 +13,8 @@ missingok postrotate # Tell OVN daemons to reopen their log files - if [ -d /var/run/ovn ]; then - for ctl in /var/run/ovn/*.ctl; do + if [ -d /run/ovn ]; then + for ctl in /run/ovn/*.ctl; do ovs-appctl -t "$ctl" vlog/reopen 2>/dev/null || : done fi diff --git a/rhel/usr_lib_systemd_system_ovn-controller.service b/rhel/usr_lib_systemd_system_ovn-controller.service index 15d0ac8..38991bd 100644 --- a/rhel/usr_lib_systemd_system_ovn-controller.service +++ b/rhel/usr_lib_systemd_system_ovn-controller.service @@ -21,7 +21,7 @@ After=openvswitch.service [Service] Type=forking -PIDFile=/var/run/ovn/ovn-controller.pid +PIDFile=/run/ovn/ovn-controller.pid Restart=on-failure Environment=OVN_RUNDIR=%t/ovn OVS_RUNDIR=%t/openvswitch EnvironmentFile=-/etc/sysconfig/ovn -- libgit2 0.28.5