From 77e23f089e02cd1737f3ec829acab80b47e79ba5 Mon Sep 17 00:00:00 2001 From: Ryan Phillips Date: Tue, 26 Mar 2019 13:22:18 -0500 Subject: [PATCH] rpm-spec: add systemd accounting config file --- origin.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/origin.spec b/origin.spec index 3751cf07f7bd..accde8218b12 100644 --- a/origin.spec +++ b/origin.spec @@ -166,6 +166,7 @@ OS_ONLY_BUILD_PLATFORMS="${BUILD_PLATFORM}" %{os_git_vars} OS_BUILD_RELEASE_ARCH PLATFORM="$(go env GOHOSTOS)/$(go env GOHOSTARCH)" install -d %{buildroot}%{_bindir} +install -d %{buildroot}%{_sysconfdir}/systemd/system.conf.d # Install linux components for bin in oc hyperkube @@ -185,6 +186,9 @@ install -p -m 755 _output/local/bin/windows/amd64/oc.exe %{buildroot}/%{_datadir install -p -m 755 _output/local/bin/windows/amd64/kubectl.exe %{buildroot}/%{_datadir}/%{name}/windows/kubectl.exe %endif +# Install systemd accounting file +install -p -m 0644 contrib/systemd/origin-accounting.conf %{buildroot}%{_sysconfdir}/systemd/system.conf.d/origin-accounting.conf + for cmd in \ kubectl do @@ -215,6 +219,7 @@ done %{_bindir}/kubectl %{_sysconfdir}/bash_completion.d/oc %{_sysconfdir}/bash_completion.d/kubectl +%{_sysconfdir}/systemd/system.conf.d/origin-accounting.conf %{_mandir}/man1/oc* %if 0%{?make_redistributable}