From 02bd235bd905089958fbee689af05d6f37ca8367 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Fri, 4 Oct 2024 12:25:41 +0200 Subject: [PATCH] run with low priority --- tar1090.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tar1090.sh b/tar1090.sh index 9cc1c6f..fa8e64a 100755 --- a/tar1090.sh +++ b/tar1090.sh @@ -4,6 +4,9 @@ set -e trap 'echo "[ERROR] Error in line $LINENO when executing: $BASH_COMMAND"' ERR trap 'echo tar1090.sh: exiting; trap - SIGTERM; kill -- -$( ps opgid= $$ | tr -d " " ) || true; exit 0' SIGTERM SIGINT SIGHUP SIGQUIT +# run with lowest priority +renice 20 $$ || true + RUN_DIR=$1 SRC_DIR=$2