kumquat-buildroot/package/irqbalance/S13irqbalance
Karoly Kasza 611523d825 irqbalance: new package
Irqbalance is a daemon to help balance the cpu load generated by
interrupts across all of a systems cpus.

[Thomas:
 - Add upstream URL in Config.in help text.
 - Fix indentation of init script.]

Signed-off-by: Karoly Kasza <kaszak@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-01-08 21:46:33 +01:00

35 lines
502 B
Bash

#!/bin/sh
#
# Starts irqbalance
#
EXEC="/usr/sbin/irqbalance"
ARGS=""
PID="/var/run/irqbalance.pid"
case "$1" in
start)
echo -n "Starting irqbalance: "
start-stop-daemon -S -q -x $EXEC -- $ARGS
if [ $? != 0 ]; then
echo "FAILED"
exit 1
else
echo "OK"
fi
pidof irqbalance > $PID
;;
stop)
echo -n "Stopping irqbalance: "
start-stop-daemon -K -q -p $PID
echo "OK"
;;
restart|reload)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac