Skip to content

Commit

Permalink
rhel: Fix rundir ownership.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
fleitner authored and blp committed May 27, 2015
1 parent 6dd3cc3 commit 51542ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions rhel/openvswitch-fedora.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions rhel/usr_lib_systemd_system_openvswitch-nonetwork.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 51542ed

Please sign in to comment.