run with low priority

This commit is contained in:
Matthias Wirth
2024-10-04 12:25:41 +02:00
parent b70c0a836b
commit 02bd235bd9

View File

@@ -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