From c200ffa70e1d93f5cb3137f3542245c44c05b008 Mon Sep 17 00:00:00 2001 From: "Eduardo Ramos Testillano (eramedu)" Date: Mon, 11 May 2020 19:03:12 +0200 Subject: [PATCH] Avoid service overhead about checking netstat ports CT script procedure starts the service and then check for availability. This check was being hard (no sleep between retries). Now, 1 second is lapsed in every check. --- example/diameter/launcher/resources/rest_api/ct/ct.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/example/diameter/launcher/resources/rest_api/ct/ct.sh b/example/diameter/launcher/resources/rest_api/ct/ct.sh index 4d485df..1ae0224 100755 --- a/example/diameter/launcher/resources/rest_api/ct/ct.sh +++ b/example/diameter/launcher/resources/rest_api/ct/ct.sh @@ -47,6 +47,7 @@ do docker exec -it ${C_NAME} bash -c "netstat -p $(pgrep ADML) --numeric-ports | grep -w 3868 | grep -w ESTABLISHED" >/dev/null [ $? -eq 0 ] && break echo -n . + sleep 1 done echo "Ready !" -- 2.20.1