Start with --nicelevel -5 to reduce the chance of dropped buffers, except in --net-only mode.
Closes #19.
This commit is contained in:
parent
967a3e9558
commit
aee837c903
5
debian/dump1090-mutability.init
vendored
5
debian/dump1090-mutability.init
vendored
|
@ -45,9 +45,10 @@ SCRIPTNAME=/etc/init.d/$NAME
|
||||||
[ -z "$MAX_RANGE" ] && MAX_RANGE=300
|
[ -z "$MAX_RANGE" ] && MAX_RANGE=300
|
||||||
|
|
||||||
# receiver:
|
# receiver:
|
||||||
|
NICELEVEL="--nicelevel -5"
|
||||||
case "x$DEVICE" in
|
case "x$DEVICE" in
|
||||||
x|x0) ARGS="$ARGS --net" ;;
|
x|x0) ARGS="$ARGS --net" ;;
|
||||||
xnone) ARGS="$ARGS --net-only" ;;
|
xnone) ARGS="$ARGS --net-only"; NICELEVEL="" ;;
|
||||||
*) ARGS="$ARGS --net --device-index $DEVICE" ;;
|
*) ARGS="$ARGS --net --device-index $DEVICE" ;;
|
||||||
esac
|
esac
|
||||||
case "x$GAIN" in
|
case "x$GAIN" in
|
||||||
|
@ -129,7 +130,7 @@ do_start()
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
start-stop-daemon --start --quiet --pidfile $PIDFILE --user $DUMP1090_USER --chuid $DUMP1090_USER --make-pidfile --background --no-close --exec $DAEMON -- \
|
start-stop-daemon --start $NICELEVEL --quiet --pidfile $PIDFILE --user $DUMP1090_USER --chuid $DUMP1090_USER --make-pidfile --background --no-close --exec $DAEMON -- \
|
||||||
$ARGS >>$LOGFILE 2>&1 \
|
$ARGS >>$LOGFILE 2>&1 \
|
||||||
|| return 2
|
|| return 2
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
Loading…
Reference in a new issue