From 5645835ef6d393188458a3c8f6a4b221125a397b Mon Sep 17 00:00:00 2001 From: Tao Liu Date: Fri, 28 Jul 2023 16:50:34 +0800 Subject: [PATCH] Use misc/irqbalance.env as irqbalance.sysconfig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The irqbalance.sysconfig file in the rpm repo is outdated. In this patch, we will always install misc/irqbalance.env as the up-to-date irqbalance.sysconfig file. Signed-off-by: Tao Liu Signed-off-by: Timothée Ravier --- irqbalance.spec | 4 +--- irqbalance.sysconfig | 28 ---------------------------- 2 files changed, 1 insertion(+), 31 deletions(-) delete mode 100644 irqbalance.sysconfig diff --git a/irqbalance.spec b/irqbalance.spec index 70b4561..efa65ca 100644 --- a/irqbalance.spec +++ b/irqbalance.spec @@ -7,7 +7,6 @@ Summary: IRQ balancing daemon License: GPL-2.0-only Url: https://github.com/Irqbalance/irqbalance Source0: https://github.com/Irqbalance/irqbalance/archive/irqbalance-%{version}.tar.gz -Source1: irqbalance.sysconfig BuildRequires: autoconf automake libtool libcap-ng BuildRequires: glib2-devel pkgconf libcap-ng-devel @@ -59,8 +58,7 @@ multiple CPUs for enhanced performance. install -D -p -m 0755 %{name} %{buildroot}%{_sbindir}/%{name} install -D -p -m 0755 %{name}-ui %{buildroot}%{_sbindir}/%{name}-ui install -D -p -m 0644 ./misc/irqbalance.service %{buildroot}/%{_unitdir}/irqbalance.service -install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/%{name} - +install -D -p -m 0644 ./misc/irqbalance.env %{buildroot}%{_sysconfdir}/sysconfig/%{name} install -d %{buildroot}%{_mandir}/man1/ install -p -m 0644 ./irqbalance.1 %{buildroot}%{_mandir}/man1/ diff --git a/irqbalance.sysconfig b/irqbalance.sysconfig deleted file mode 100644 index 8ac7a29..0000000 --- a/irqbalance.sysconfig +++ /dev/null @@ -1,28 +0,0 @@ -# irqbalance is a daemon process that distributes interrupts across -# CPUS on SMP systems. The default is to rebalance once every 10 -# seconds. This is the environment file that is specified to systemd via the -# EnvironmentFile key in the service unit file (or via whatever method the init -# system you're using has. -# -# ONESHOT=yes -# after starting, wait for a minute, then look at the interrupt -# load and balance it once; after balancing exit and do not change -# it again. -#IRQBALANCE_ONESHOT= - -# -# IRQBALANCE_BANNED_CPUS -# 64 bit bitmask which allows you to indicate which cpu's should -# be skipped when reblancing irqs. Cpu numbers which have their -# corresponding bits set to one in this mask will not have any -# irq's assigned to them on rebalance -# -#IRQBALANCE_BANNED_CPUS= - -# -# IRQBALANCE_ARGS -# append any args here to the irqbalance daemon as documented in the man page -# -#IRQBALANCE_ARGS= - -