[hamradio-commits] [dump1090-mutability] 89/172: Start with --nicelevel -5 to reduce the chance of dropped buffers, except in --net-only mode.

Matteo F. Vescovi mfv at moszumanska.debian.org
Sun Jan 28 13:45:48 UTC 2018


This is an automated email from the git hooks/post-receive script.

mfv pushed a commit to branch master
in repository dump1090-mutability.

commit 0ab1032fe12ce77cb9b3f888f23f0a60ef28dca8
Author: Oliver Jowett <oliver at mutability.co.uk>
Date:   Wed Feb 11 21:20:31 2015 +0000

    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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090-mutability.git



More information about the pkg-hamradio-commits mailing list