public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-apps/irqbalance/files: irqbalance.init.3
@ 2013-01-25 18:59 Doug Goldstein (cardoe)
  0 siblings, 0 replies; only message in thread
From: Doug Goldstein (cardoe) @ 2013-01-25 18:59 UTC (permalink / raw
  To: gentoo-commits

cardoe      13/01/25 18:59:14

  Added:                irqbalance.init.3
  Log:
  Check that we can actually start up irqbalance based on kernel configuration. Patches and improvements from Kerin Millar <kerframil@gmail.com>
  
  (Portage version: 2.2.0_alpha159/cvs/Linux x86_64, unsigned Manifest commit)

Revision  Changes    Path
1.1                  sys-apps/irqbalance/files/irqbalance.init.3

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/irqbalance/files/irqbalance.init.3?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/irqbalance/files/irqbalance.init.3?rev=1.1&content-type=text/plain

Index: irqbalance.init.3
===================================================================
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/sys-apps/irqbalance/files/irqbalance.init.3,v 1.1 2013/01/25 18:59:14 cardoe Exp $

depend() {
	need localmount
	after bootmisc
}

command="/usr/sbin/irqbalance"
command_args="${IRQBALANCE_OPTS}"

check_sysfs() {
	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
}

start() {
	check_sysfs || return 1
	ebegin "Starting irqbalance"
	start-stop-daemon --exec ${command} --start -- ${IRQBALANCE_OPTS}
	eend $?
}





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-25 18:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-25 18:59 [gentoo-commits] gentoo-x86 commit in sys-apps/irqbalance/files: irqbalance.init.3 Doug Goldstein (cardoe)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox