Added exit line when running processes numbers are less then expected

This commit is contained in:
2022-12-27 09:13:23 +00:00
parent fb90e55880
commit f014ef4e92

View File

@@ -23,6 +23,12 @@ ROLES=$ROLES
DEBUG=1 DEBUG=1
fi; fi;
SERVICE_FILES=$SERVICE_FILES
RETRIES_NUMBER=$RETRIES_NUMBER
if [ -z "$RETRIES_NUMBER" ]; then
RETRIES_NUMBER=2;
fi
# finding IPv4 addresses from application names. # finding IPv4 addresses from application names.
name_resolver() { name_resolver() {
@@ -98,6 +104,9 @@ name_resolver() {
sleep 1; sleep 1;
RETRIES=$((RETRIES+1)); RETRIES=$((RETRIES+1));
name_resolver $DNS $RETRIES; name_resolver $DNS $RETRIES;
else
debug "Not enough running process found for executing domain related rules, exiting";
exit;
fi fi
fi; fi;
} }