From: Flavio Leitner Date: Tue, 28 Apr 2015 02:01:09 +0000 (-0300) Subject: rhel: Fix rundir ownership. X-Git-Tag: v2.4.0~197 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=51542eddd89d4005dc99deae99c6980302174ea5 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 Signed-off-by: Ben Pfaff --- 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