From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/irqbalance/files/, sys-apps/irqbalance/
Date: Fri, 3 May 2024 12:43:30 +0000 (UTC) [thread overview]
Message-ID: <1714740185.a9c2ee5f7cd89b3bb5c8a409b114ebc21cda0ce7.sam@gentoo> (raw)
commit: a9c2ee5f7cd89b3bb5c8a409b114ebc21cda0ce7
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri May 3 12:42:55 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 3 12:43:05 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9c2ee5f
sys-apps/irqbalance: fix path in init script
Closes: https://bugs.gentoo.org/931133
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-apps/irqbalance/files/irqbalance.init.5 | 22 ++++++++++++++++++++++
...nce-1.9.4.ebuild => irqbalance-1.9.4-r1.ebuild} | 2 +-
2 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/sys-apps/irqbalance/files/irqbalance.init.5 b/sys-apps/irqbalance/files/irqbalance.init.5
new file mode 100644
index 000000000000..511e4fee023a
--- /dev/null
+++ b/sys-apps/irqbalance/files/irqbalance.init.5
@@ -0,0 +1,22 @@
+#!/sbin/openrc-run
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+depend() {
+ need localmount
+ after bootmisc
+}
+
+command="/usr/bin/irqbalance"
+command_args="${IRQBALANCE_OPTS}"
+
+start_pre() {
+ if grep -q MSI /proc/interrupts 2>/dev/null && \
+ test -z "$(find /sys/devices -type d -name msi_irqs 2>/dev/null)"; then
+ eerror "MSI interrupts found in /proc/interrupts but none found in sysfs."
+ eerror "You need to update your kernel."
+ return 1
+ fi
+
+ checkpath -q -d /run/${SVCNAME}
+}
diff --git a/sys-apps/irqbalance/irqbalance-1.9.4.ebuild b/sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild
similarity index 96%
rename from sys-apps/irqbalance/irqbalance-1.9.4.ebuild
rename to sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild
index d15ff251b576..ba4b5355945e 100644
--- a/sys-apps/irqbalance/irqbalance-1.9.4.ebuild
+++ b/sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild
@@ -64,7 +64,7 @@ src_configure() {
src_install() {
meson_src_install
- newinitd "${FILESDIR}"/irqbalance.init.4 irqbalance
+ newinitd "${FILESDIR}"/irqbalance.init.5 irqbalance
newconfd "${FILESDIR}"/irqbalance.confd-2 irqbalance
systemd_dounit "${WORKDIR}"/${P}/misc/irqbalance.service
udev_dorules "${WORKDIR}"/${P}/misc/90-irqbalance.rules
next reply other threads:[~2024-05-03 12:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-03 12:43 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-03-28 4:47 [gentoo-commits] repo/gentoo:master commit in: sys-apps/irqbalance/files/, sys-apps/irqbalance/ Sam James
2023-12-15 2:33 Sam James
2018-07-09 12:34 Lars Wendler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1714740185.a9c2ee5f7cd89b3bb5c8a409b114ebc21cda0ce7.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox