mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-04 10:53:30 +08:00
611523d825
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>
35 lines
502 B
Bash
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
|