lightman-agent 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/lightman-shell.bat +14 -17
package/package.json
CHANGED
|
@@ -100,23 +100,20 @@ if "%BROWSER%"=="" (
|
|
|
100
100
|
echo [%date% %time%] Browser: %BROWSER% >> "%LOG_FILE%"
|
|
101
101
|
echo [%date% %time%] URL: %URL% >> "%LOG_FILE%"
|
|
102
102
|
|
|
103
|
-
REM ----------------------------------------------------------------
|
|
104
|
-
REM Wait for agent service (port 3403)
|
|
105
|
-
REM ----------------------------------------------------------------
|
|
106
|
-
echo [%date% %time%] Waiting for port 3403... >> "%LOG_FILE%"
|
|
107
|
-
set WAIT_COUNT=0
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
set /a WAIT_COUNT
|
|
114
|
-
if %WAIT_COUNT%
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
)
|
|
118
|
-
timeout /t 1 /nobreak >nul
|
|
119
|
-
goto wait_for_agent
|
|
103
|
+
REM ----------------------------------------------------------------
|
|
104
|
+
REM Wait for agent service (port 3403)
|
|
105
|
+
REM ----------------------------------------------------------------
|
|
106
|
+
echo [%date% %time%] Waiting for port 3403... >> "%LOG_FILE%"
|
|
107
|
+
set WAIT_COUNT=0
|
|
108
|
+
|
|
109
|
+
:wait_for_agent
|
|
110
|
+
netstat -an | findstr ":3403.*LISTENING" >nul 2>&1
|
|
111
|
+
if %errorlevel%==0 goto agent_ready
|
|
112
|
+
set /a WAIT_COUNT+=1
|
|
113
|
+
set /a WAIT_MOD=WAIT_COUNT %% 30
|
|
114
|
+
if %WAIT_MOD%==0 echo [%date% %time%] Still waiting for port 3403... (%WAIT_COUNT%s) >> "%LOG_FILE%"
|
|
115
|
+
timeout /t 1 /nobreak >nul
|
|
116
|
+
goto wait_for_agent
|
|
120
117
|
|
|
121
118
|
:agent_ready
|
|
122
119
|
echo [%date% %time%] Agent ready >> "%LOG_FILE%"
|