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