summaryrefslogtreecommitdiff
path: root/rhel
diff options
context:
space:
mode:
authorFlavio Leitner <fbl@redhat.com>2015-04-27 23:01:09 -0300
committerBen Pfaff <blp@nicira.com>2015-05-27 09:12:10 -0700
commit51542eddd89d4005dc99deae99c6980302174ea5 (patch)
treef47bcc489cdae6e48521e970daea8551232959a0 /rhel
parent6dd3cc3989bb350ffe8bbe2082e94373350ae9c4 (diff)
downloadopenvswitch-51542eddd89d4005dc99deae99c6980302174ea5.tar.gz
rhel: Fix rundir ownership.
Although the ovs-ctl/ovs-lib takes care of creating the rundir, it is correct to let the systemd manages the directory and let the rpm know about the ownership too. Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'rhel')
-rw-r--r--rhel/openvswitch-fedora.spec.in1
-rw-r--r--rhel/usr_lib_systemd_system_openvswitch-nonetwork.service2
2 files changed, 3 insertions, 0 deletions
diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in
index f3dbebfcf..b3ad7d8ae 100644
--- a/rhel/openvswitch-fedora.spec.in
+++ b/rhel/openvswitch-fedora.spec.in
@@ -258,6 +258,7 @@ rm -rf $RPM_BUILD_ROOT
%doc FAQ.md NEWS INSTALL.DPDK.md rhel/README.RHEL
/var/lib/openvswitch
/var/log/openvswitch
+%ghost %attr(755,root,root) %{_rundir}/openvswitch
%exclude %{_bindir}/ovs-benchmark
%exclude %{_bindir}/ovs-parse-backtrace
%exclude %{_bindir}/ovs-pcap
diff --git a/rhel/usr_lib_systemd_system_openvswitch-nonetwork.service b/rhel/usr_lib_systemd_system_openvswitch-nonetwork.service
index 870b25e89..e4c2a668c 100644
--- a/rhel/usr_lib_systemd_system_openvswitch-nonetwork.service
+++ b/rhel/usr_lib_systemd_system_openvswitch-nonetwork.service
@@ -11,3 +11,5 @@ EnvironmentFile=-/etc/sysconfig/openvswitch
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl start \
--system-id=random $OPTIONS
ExecStop=/usr/share/openvswitch/scripts/ovs-ctl stop
+RuntimeDirectory=openvswitch
+RuntimeDirectoryMode=0755