Skip to content
Snippets Groups Projects
Commit 99386e1d authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

fix start script for win

parent f79d82d8
Branches
Tags
No related merge requests found
......@@ -4,6 +4,7 @@ c:\opt\consul\nomad run discovery.nmd
ping 192.0.2.1 -n 1 -w 3000 > nul
set i=0
set started=0
:repeat
set /a i=%i%+1
echo %i%
......@@ -12,11 +13,12 @@ if %i% EQU 20 (
)
ping 192.0.2.1 -n 1 -w 1000 >nul
curl --silent --fail 127.0.0.1:8400/asapo-discovery/asapo-mongodb --stderr - | findstr 127.0.0.1 || goto :repeat
if %i% EQU 1 (
if %started% EQU 0 (
c:\opt\consul\nomad run authorizer.nmd
c:\opt\consul\nomad run receiver_tcp.nmd
c:\opt\consul\nomad run broker.nmd
c:\opt\consul\nomad run file_transfer.nmd
set started=1
ping 192.0.2.1 -n 1 -w 3000 > nul
)
curl --silent --fail 127.0.0.1:8400/asapo-discovery/v0.1/asapo-receiver?protocol=v0.1 --stderr - | findstr 127.0.0.1 || goto :repeat
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment