rhel: Fix rundir ownership.
authorFlavio Leitner <fbl@redhat.com>
Tue, 28 Apr 2015 02:01:09 +0000 (23:01 -0300)
committerBen Pfaff <blp@nicira.com>
Wed, 27 May 2015 16:12:10 +0000 (09:12 -0700)
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>
rhel/openvswitch-fedora.spec.in
rhel/usr_lib_systemd_system_openvswitch-nonetwork.service

index f3dbebf..b3ad7d8 100644 (file)
@@ -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
index 870b25e..e4c2a66 100644 (file)
@@ -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