Decided to use setpriority to set the niceness.

Apparently ionice is set automatically when nice is set.
This commit is contained in:
Andrew Hamilton 2016-11-10 00:13:04 +01:00
parent 4b48c0c912
commit d4e375b1fb
2 changed files with 3 additions and 6 deletions

View file

@ -6,4 +6,4 @@ set -e
SCRIPT_PATH=$(realpath $0)
SCRIPT_DIR=$(dirname $SCRIPT_PATH)
unshare --mount --map-root-user "$SCRIPT_DIR/sandbox_fs.py" "$@"
exec unshare --mount --map-root-user "$SCRIPT_DIR/sandbox_fs.py" "$@"