diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2012-05-14 09:47:28 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2012-05-14 09:47:28 +0000 |
commit | 3ac481393d3f31caa030b9499d4f9c8d04ce783c (patch) | |
tree | e4bf3691273f62d80b14dcb3978f5c9ca7eded72 /testing/irqbalance/irqbalance.initd | |
parent | 3ebd91d5127e1d92d79a45337058b6a5df7ca306 (diff) | |
download | aports-3ac481393d3f31caa030b9499d4f9c8d04ce783c.tar.bz2 aports-3ac481393d3f31caa030b9499d4f9c8d04ce783c.tar.xz |
testing/irqbalance: fix init script and conf
Diffstat (limited to 'testing/irqbalance/irqbalance.initd')
-rw-r--r-- | testing/irqbalance/irqbalance.initd | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/testing/irqbalance/irqbalance.initd b/testing/irqbalance/irqbalance.initd index c27a32f27f..df7daf74dc 100644 --- a/testing/irqbalance/irqbalance.initd +++ b/testing/irqbalance/irqbalance.initd @@ -1,12 +1,23 @@ #!/sbin/runscript # Copyright 1999-2012 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.2,v 1.1 2012/04/06 18:03:29 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/irqbalance/files/irqbalance.init,v 1.5 2012/01/07 22:04:49 vapier Exp $ depend() { - need localmount - after bootmisc } -command="/usr/sbin/irqbalance" -command_args="${IRQBALANCE_OPTS}" +ssd() { + start-stop-daemon --exec /usr/sbin/irqbalance "$@" +} + +start() { + ebegin "Starting irqbalance" + ssd --start -- ${IRQBALANCE_OPTS} + eend $? +} + +stop() { + ebegin "Stopping irqbalance" + ssd --stop + eend $? +} |