Added exit line when running processes numbers are less then expected

This commit is contained in:
2022-12-27 09:03:40 +00:00
parent ec2f7480b3
commit 4ad3a0e7e5
2 changed files with 9 additions and 0 deletions

View File

@@ -29,6 +29,12 @@ set | grep ROLES
SERVICE_FILES=$SERVICE_FILES
RETRIES_NUMBER=$RETRIES_NUMBER
if [ -z "$RETRIES_NUMBER" ]; then
RETRIES_NUMBER=2;
fi
# turn on debug mode by extra option "debug"
if [[ "$(echo "$EXTRA_OPTIONS" | grep debug)" != "" ]] ; then
DEBUG=1
@@ -109,6 +115,9 @@ name_resolver() {
sleep 1;
RETRIES=$((RETRIES+1));
name_resolver $DNS $RETRIES;
else
"Not enough running process found for executing firewall rules, exiting";
exit;
fi
fi;
}