From c649fe54427ea6e6c53e0c832314d999ec11e4e9 Mon Sep 17 00:00:00 2001 From: Gurucharan Shetty Date: Fri, 12 Jul 2013 20:52:51 -0700 Subject: [PATCH] rhel, xenserver: Create /var/log/openvswitch directory. During installation create the /var/log/openvswitch directory so that openvswitch startup script is able to write the ovs-ctl.log Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff --- rhel/openvswitch-fedora.spec.in | 1 + rhel/openvswitch.spec.in | 1 + xenserver/openvswitch-xen.spec.in | 1 + 3 files changed, 3 insertions(+) diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in index dc40403ee..27a3b0368 100644 --- a/rhel/openvswitch-fedora.spec.in +++ b/rhel/openvswitch-fedora.spec.in @@ -174,6 +174,7 @@ systemctl start openvswitch.service %doc /usr/share/man/man8/ovs-test.8.gz %doc /usr/share/man/man8/ovs-l3ping.8.gz /var/lib/openvswitch +/var/log/openvswitch /usr/share/openvswitch/scripts/ovs-ctl %exclude /etc/openvswitch %exclude /usr/bin/ovs-benchmark diff --git a/rhel/openvswitch.spec.in b/rhel/openvswitch.spec.in index 53512bc5c..0fd52004d 100644 --- a/rhel/openvswitch.spec.in +++ b/rhel/openvswitch.spec.in @@ -155,3 +155,4 @@ exit 0 /usr/share/doc/openvswitch-%{version}/FAQ /usr/share/doc/openvswitch-%{version}/README.RHEL /var/lib/openvswitch +/var/log/openvswitch diff --git a/xenserver/openvswitch-xen.spec.in b/xenserver/openvswitch-xen.spec.in index dff18d0b5..4d3b8fa6a 100644 --- a/xenserver/openvswitch-xen.spec.in +++ b/xenserver/openvswitch-xen.spec.in @@ -452,6 +452,7 @@ exit 0 /usr/share/man/man8/ovs-vsctl.8.gz /usr/share/man/man8/ovs-vswitchd.8.gz /var/lib/openvswitch +/var/log/openvswitch %exclude /usr/lib/xsconsole/plugins-base/*.py[co] %exclude /usr/share/openvswitch/scripts/*.py[co] %exclude /usr/share/openvswitch/python/*.py[co] -- 2.43.0