mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 07:00:25 +00:00
NOISSUE - Fix run script and compiler warnings (#1336)
* Fix NATS server naming in run script Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Fix warnings Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Fix typo Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
This commit is contained in:
+4
-4
@@ -21,18 +21,18 @@ function cleanup {
|
||||
###
|
||||
# NATS
|
||||
###
|
||||
gnatsd &
|
||||
nats-server &
|
||||
counter=1
|
||||
until nc -zv localhost 4222 1>/dev/null 2>&1;
|
||||
until fuser 4222/tcp 1>/dev/null 2>&1;
|
||||
do
|
||||
sleep 0.5
|
||||
((counter++))
|
||||
if [ ${counter} -gt 10 ]
|
||||
then
|
||||
echo -ne "gnatsd failed to start in 5 sec, exiting"
|
||||
echo "NATS failed to start in 5 sec, exiting"
|
||||
exit 1
|
||||
fi
|
||||
echo -ne "Waiting for gnatsd"
|
||||
echo "Waiting for NATS server"
|
||||
done
|
||||
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user