check_local_webservice.sh: add parameter 'CONFLICTING_SCRIPTS' - don't run if a conflicting other script is currently running.

This commit is contained in:
2021-10-23 14:48:35 +02:00
parent 404ab8a891
commit 5e312a597d
2 changed files with 70 additions and 43 deletions

View File

@ -52,10 +52,18 @@ LOG_FILES_TO_MONITOR=""
# - In addition to the script, a LOCK directory can also be specified which is
# - connected to it.
# -
# - If no fixed LOCK directory is connected to the script, set
# - this value to the constant 'CHECK_PROCESS_LIST'.
# -
# - If no value for the LOCK directory is given, the LOCK directory
# - '/tmp/<base-script_name>.LOCK' is assumed.
# -
# -
# - Example:
# - CONFLICTING_SCRIPTS="
# - /root/bin/monitoring/check_webservice_load.sh
# - /root/bin/monitoring/check_remote_websites.sh:/tmp/check_remote_websites.LOCK
# - /root/bin/monitoring/check_webservice_load.sh:CHECK_PROCESS_LIST
# - /root/bin/monitoring/check_remote_websites.sh
# - "
# -
# - Defaults to:
# - CONFLICTING_SCRIPTS="/root/bin/monitoring/check_webservice_load.sh"