gentoo-ebuilds/sys-apps/irqbalance/files/irqbalance.init.5
Sam James a9c2ee5f7c
sys-apps/irqbalance: fix path in init script
Closes: https://bugs.gentoo.org/931133
Signed-off-by: Sam James <sam@gentoo.org>
2024-05-03 13:43:05 +01:00

22 lines
554 B
Groff

#!/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}
}