V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 44s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 44s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -30,14 +30,14 @@ arg_priority_check() {
|
||||
if [[ -n "${VAR_PRIORITY}" ]]; then
|
||||
renice "${VAR_PRIORITY}" -p "$$" > /dev/null 2>&1
|
||||
var=$(ps -o ni= -p $$) > /dev/null 2>&1
|
||||
do_log "info" "tty" "New renice value: '${var}'."
|
||||
do_log "info" "file_only" "New renice value: '${var}'."
|
||||
fi
|
||||
|
||||
### Check if ionice PRIORITY is set and adjust ionice priority.
|
||||
if [[ -n "${VAR_REIONICE_CLASS}" ]]; then
|
||||
ionice -c"${VAR_REIONICE_CLASS}" -n"${VAR_REIONICE_PRIORITY}" -p "$$"
|
||||
var=$(ionice -p $$) > /dev/null 2>&1
|
||||
do_log "info" "tty" "New ionice value: '${var}'."
|
||||
do_log "info" "file_only" "New ionice value: '${var}'."
|
||||
fi
|
||||
}
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
|
||||
Reference in New Issue
Block a user