summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2011-08-18 22:55:38 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2011-08-18 22:55:38 (GMT)
commit9717976f8559a5f965867438fe4457aa9e8bc113 (patch)
tree5537377ae58b541ab503617f5be9c17148187e78 /abs/core/runit-scripts/runitscripts
parentbf35370b6aa252861f744bff9b8259b545511f9a (diff)
downloadlinhes_pkgbuild-9717976f8559a5f965867438fe4457aa9e8bc113.zip
linhes_pkgbuild-9717976f8559a5f965867438fe4457aa9e8bc113.tar.gz
linhes_pkgbuild-9717976f8559a5f965867438fe4457aa9e8bc113.tar.bz2
runit-scripts: add irqbalance run script/dir
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/irqbalance/run16
1 files changed, 16 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/irqbalance/run b/abs/core/runit-scripts/runitscripts/services/irqbalance/run
new file mode 100755
index 0000000..6342868
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/irqbalance/run
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# source application-specific settings
+ONESHOT=0
+[ -f /etc/conf.d/irqbalance ] && . /etc/conf.d/irqbalance
+
+if [ "$ONESHOT" -ne 0 ]; then
+ ONESHOT_CMD="--oneshot"
+fi
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+stat_runit "Starting irqbalance"
+
+exec /usr/sbin/irqbalance --debug $ONESHOT_CMD >/dev/null