diff options
author | 2007-01-21 19:07:25 +0000 | |
---|---|---|
committer | 2007-01-21 19:07:25 +0000 | |
commit | 59d896ea2b799187179252942f2b58733d387ad7 (patch) | |
tree | b7f1b517a5205d77d1a43703ac7bf02047298361 /sys-apps/irqbalance/files | |
parent | Remove old version. (diff) | |
download | historical-59d896ea2b799187179252942f2b58733d387ad7.tar.gz historical-59d896ea2b799187179252942f2b58733d387ad7.tar.bz2 historical-59d896ea2b799187179252942f2b58733d387ad7.zip |
Drop initd checks as irqbalance itself does it #162975 by J.Taimr.
Package-Manager: portage-2.1.2-r1
Diffstat (limited to 'sys-apps/irqbalance/files')
-rw-r--r-- | sys-apps/irqbalance/files/irqbalance.confd | 15 | ||||
-rwxr-xr-x | sys-apps/irqbalance/files/irqbalance.init | 19 |
2 files changed, 16 insertions, 18 deletions
diff --git a/sys-apps/irqbalance/files/irqbalance.confd b/sys-apps/irqbalance/files/irqbalance.confd new file mode 100644 index 000000000000..152dd7988652 --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.confd @@ -0,0 +1,15 @@ +# /etc/conf.d/irqbalance: config file for /etc/init.d/irqbalance +# These are envvars used by irqbalance itself. For more info, +# please see the irqbalance manpage. + +# Run irqbalance once and then exit +#IRQBALANCE_ONESHOT="0" + +# Include debug messages in output +#IRQBALANCE_DEBUG="0" + +# List of cpus to not include in balancing +#IRQBALANCE_BANNED_CPUS="" + +# List of interrupts to not include in balancing +#IRQBALANCE_BANNED_INTERRUPTS="" diff --git a/sys-apps/irqbalance/files/irqbalance.init b/sys-apps/irqbalance/files/irqbalance.init index f311b2c22569..18b051931238 100755 --- a/sys-apps/irqbalance/files/irqbalance.init +++ b/sys-apps/irqbalance/files/irqbalance.init @@ -1,31 +1,14 @@ #!/sbin/runscript # Copyright 1999-2007 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,v 1.2 2007/01/09 04:13:34 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/irqbalance/files/irqbalance.init,v 1.3 2007/01/21 19:07:25 vapier Exp $ depend() { need localmount after bootmisc } -checkconfig() { - # irqbalance only makes sense to run on smp machines - # where each cpu has its own cache ... so if you're - # just running a dual core machine, you've got shared - # cache, so we'll abort here. - local physical_ids=$(grep -s '^physical id[[:space:]]*:' /proc/cpuinfo | sort -u | wc -l) - [[ ${physical_ids} -gt 1 ]] && return 0 - [[ ${physical_ids} -eq 1 ]] && return 1 - local processors=$(grep -s '^processor[[:space:]]*:' /proc/cpuinfo | sort -u | wc -l) - [[ ${processors} -gt 1 ]] && return 0 -} - start() { - if ! checkconfig ; then - eerror "irqbalance: your machine lacks different physical processors; not enabling" - return 1 - fi - ebegin "Starting irqbalance" start-stop-daemon --start --exec /sbin/irqbalance \ --pidfile /var/run/irqbalance.pid |