V8.13.008.2025.08.22
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -24,7 +24,7 @@ guard_sourcing
|
||||
arg_priority_check() {
|
||||
declare var
|
||||
### Check if nice PRIORITY is set and adjust nice priority.
|
||||
if [[ -n "${VAR_HANDLER_PRIORITY:-}" ]]; then
|
||||
if [[ "${VAR_HANDLER_PRIORITY:-}" -ne 0 ]]; then
|
||||
if command -v renice >/dev/null; then
|
||||
renice "${VAR_HANDLER_PRIORITY}" -p "$$"
|
||||
var=$(ps -o ni= -p $$) > /dev/null 2>&1
|
||||
@@ -37,7 +37,7 @@ arg_priority_check() {
|
||||
fi
|
||||
|
||||
### Check if ionice PRIORITY is set and adjust ionice priority.
|
||||
if [[ -n "${VAR_REIONICE_CLASS:-}" ]]; then
|
||||
if [[ "${VAR_REIONICE_CLASS:-}" -ne 2 ]]; then
|
||||
if command -v ionice >/dev/null; then
|
||||
ionice -c"${VAR_REIONICE_CLASS:-2}" -n"${VAR_REIONICE_PRIORITY:-4}" -p "$$"
|
||||
var=$(ionice -p $$) > /dev/null 2>&1
|
||||
|
||||
Reference in New Issue
Block a user