Files
railseek6/zrun.bat

28 lines
784 B
Batchfile

@echo off
chcp 65001 >nul
echo =======================================
echo Starting LightRAG Production System
echo =======================================
REM Kill any existing process using port 3015
echo Checking for existing server on port 3015...
for /f "tokens=5" %%a in ('netstat -ano ^| findstr :3015') do (
set pid=%%a
)
if defined pid (
echo Found existing process with PID %pid%. Killing...
taskkill /F /PID %pid% >nul 2>&1
if errorlevel 1 (
echo Failed to kill process %pid%. It may have already exited.
) else (
echo Process %pid% killed.
)
) else (
echo No existing server found on port 3015.
)
REM Start the LightRAG server using the fixed Python script
echo Starting LightRAG server...
python start_server_fixed.py
pause