check_webservice_load.sh: add parameter 'CONFLICTING_SCRIPTS' - don't run this script if anny given conflicting scripts are running.

This commit is contained in:
2021-10-22 14:22:17 +02:00
parent 0db9193023
commit 404ab8a891
2 changed files with 127 additions and 53 deletions

View File

@ -14,6 +14,25 @@
# ---
# - CONFLICTING_SCRIPTS
# -
# - The scripts listed here conflict with this script. If one of these scripts
# - is currently running, this script will be stopped.
# -
# - In addition to the script, a LOCK directory can also be specified which is
# - connected to it.
# -
# - Example:
# - CONFLICTING_SCRIPTS="
# - /root/bin/monitoring/check_webservice_load.sh
# - /root/bin/monitoring/check_remote_websites.sh:/tmp/check_remote_websites.LOCK
# -
# - Defaults to:
# - CONFLICTING_SCRIPTS="/root/bin/monitoring/check_local_webservice.sh:/tmp/check_local_webservice.LOCK"
# -
#CONFLICTING_SCRIPTS=""
# - What to check
# -
check_load=true