From aee837c90308670890a3ca0bff1cea1fe8ab976f Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Wed, 11 Feb 2015 21:20:31 +0000 Subject: [PATCH] Start with --nicelevel -5 to reduce the chance of dropped buffers, except in --net-only mode. Closes #19. --- debian/dump1090-mutability.init | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/dump1090-mutability.init b/debian/dump1090-mutability.init index dd20631..dd57e82 100644 --- a/debian/dump1090-mutability.init +++ b/debian/dump1090-mutability.init @@ -45,9 +45,10 @@ SCRIPTNAME=/etc/init.d/$NAME [ -z "$MAX_RANGE" ] && MAX_RANGE=300 # receiver: +NICELEVEL="--nicelevel -5" case "x$DEVICE" in x|x0) ARGS="$ARGS --net" ;; - xnone) ARGS="$ARGS --net-only" ;; + xnone) ARGS="$ARGS --net-only"; NICELEVEL="" ;; *) ARGS="$ARGS --net --device-index $DEVICE" ;; esac case "x$GAIN" in @@ -129,7 +130,7 @@ do_start() 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 \ || return 2 sleep 1