V8.00.000.2025.06.17
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -65,8 +65,6 @@ for arg in "$@"; do case "${arg,,}" in -c|--contact) . ./lib/0001_contact.sh; co
|
|||||||
for arg in "$@"; do case "${arg,,}" in -h|--help) . ./lib/0000_usage.sh; usage; exit 0;; esac; done
|
for arg in "$@"; do case "${arg,,}" in -h|--help) . ./lib/0000_usage.sh; usage; exit 0;; esac; done
|
||||||
for arg in "$@"; do case "${arg,,}" in -v|--version) . ./lib/0002_version.sh; version; exit 0;; esac; done
|
for arg in "$@"; do case "${arg,,}" in -v|--version) . ./lib/0002_version.sh; version; exit 0;; esac; done
|
||||||
|
|
||||||
# TODO: Check till line #68 ok.
|
|
||||||
|
|
||||||
### ALL CHECKS DONE. READY TO START THE SCRIPT.
|
### ALL CHECKS DONE. READY TO START THE SCRIPT.
|
||||||
declare -grx VAR_SETUP="true"
|
declare -grx VAR_SETUP="true"
|
||||||
umask 0022
|
umask 0022
|
||||||
@@ -130,6 +128,7 @@ arg_parser "$@"
|
|||||||
arg_priority_check
|
arg_priority_check
|
||||||
|
|
||||||
yaml_parser
|
yaml_parser
|
||||||
|
# TODO: Check till line #130 ok.
|
||||||
yaml_reader
|
yaml_reader
|
||||||
|
|
||||||
# TODO: Implement / Activate IP, Port validation
|
# TODO: Implement / Activate IP, Port validation
|
||||||
|
|||||||
@@ -27,15 +27,15 @@ guard_sourcing
|
|||||||
arg_priority_check() {
|
arg_priority_check() {
|
||||||
declare var
|
declare var
|
||||||
### Check if nice PRIORITY is set and adjust nice priority.
|
### Check if nice PRIORITY is set and adjust nice priority.
|
||||||
if [[ -n ${VAR_PRIORITY} ]]; then
|
if [[ -n "${VAR_PRIORITY}" ]]; then
|
||||||
renice "${VAR_PRIORITY}" -p "$$"
|
renice "${VAR_PRIORITY}" -p "$$" > /dev/null 2>&1
|
||||||
var=$(ps -o ni= -p $$) > /dev/null 2>&1
|
var=$(ps -o ni= -p $$) > /dev/null 2>&1
|
||||||
do_log "info" "file_only" "New renice value: '${var}'."
|
do_log "info" "file_only" "New renice value: '${var}'."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Check if ionice PRIORITY is set and adjust ionice priority.
|
### Check if ionice PRIORITY is set and adjust ionice priority.
|
||||||
if [[ -n ${VAR_REIONICE_CLASS} ]]; then
|
if [[ -n "${VAR_REIONICE_CLASS}" ]]; then
|
||||||
ionice -c"${VAR_REIONICE_CLASS:-2}" -n"${VAR_REIONICE_PRIORITY:-4}" -p "$$"
|
ionice -c"${VAR_REIONICE_CLASS}" -n"${VAR_REIONICE_PRIORITY}" -p "$$"
|
||||||
var=$(ionice -p $$) > /dev/null 2>&1
|
var=$(ionice -p $$) > /dev/null 2>&1
|
||||||
do_log "info" "file_only" "New ionice value: '${var}'."
|
do_log "info" "file_only" "New ionice value: '${var}'."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user