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 <gshe...@nicira.com>
---
 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 dc40403..27a3b03 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 53512bc..0fd5200 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 dff18d0..4d3b8fa 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]
-- 
1.7.9.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to