V8.02.644.2025.05.31
All checks were successful
Retrieve the DNSSEC status at the time of updating the repository. / build-dnssec-diagram (push) Successful in 30s
All checks were successful
Retrieve the DNSSEC status at the time of updating the repository. / build-dnssec-diagram (push) Successful in 30s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -13,17 +13,17 @@
|
||||
#######################################
|
||||
# Check and setup Script Priorities
|
||||
# Globals:
|
||||
# HANDLER_PRIORITY
|
||||
# REIONICE_CLASS
|
||||
# REIONICE_PRIORITY
|
||||
# VAR_HANDLER_PRIORITY
|
||||
# VAR_REIONICE_CLASS
|
||||
# VAR_REIONICE_PRIORITY
|
||||
# Arguments:
|
||||
# None
|
||||
#######################################
|
||||
arg_priority_check() {
|
||||
declare var
|
||||
# Check if nice PRIORITY is set and adjust nice priority.
|
||||
if [[ -n ${HANDLER_PRIORITY} ]]; then
|
||||
renice "${HANDLER_PRIORITY}" -p "$$"
|
||||
if [[ -n ${VAR_HANDLER_PRIORITY} ]]; then
|
||||
renice "${VAR_HANDLER_PRIORITY}" -p "$$"
|
||||
var=$(ps -o ni= -p $$) > /dev/null 2>&1
|
||||
printf "\e[92m++++ ++++ ++++ ++++ ++++ ++++ ++ ✅ New renice value: %s\e[0m\n" "${var}"
|
||||
# sleep 1
|
||||
@@ -31,8 +31,8 @@ arg_priority_check() {
|
||||
fi
|
||||
|
||||
# Check if ionice PRIORITY is set and adjust ionice priority.
|
||||
if [[ -n ${REIONICE_CLASS} ]]; then
|
||||
ionice -c"${REIONICE_CLASS:-2}" -n"${REIONICE_PRIORITY:-4}" -p "$$"
|
||||
if [[ -n ${VAR_REIONICE_CLASS} ]]; then
|
||||
ionice -c"${VAR_REIONICE_CLASS:-2}" -n"${VAR_REIONICE_PRIORITY:-4}" -p "$$"
|
||||
var=$(ionice -p $$) > /dev/null 2>&1
|
||||
printf "\e[92m++++ ++++ ++++ ++++ ++++ ++++ ++ ✅ New ionice value: %s\e[0m\n" "${var}"
|
||||
# sleep 1
|
||||
|
||||
Reference in New Issue
Block a user