Files
Atomizer/atomizer-dashboard/stop-dashboard.bat

25 lines
639 B
Batchfile
Raw Normal View History

@echo off
title Stop Atomizer Dashboard
color 0C
echo.
echo Stopping Atomizer Dashboard servers...
echo.
:: Kill processes by window title
taskkill /F /FI "WINDOWTITLE eq Atomizer Backend*" >nul 2>&1
taskkill /F /FI "WINDOWTITLE eq Atomizer Frontend*" >nul 2>&1
:: Kill any remaining processes on the ports (backend: 8001, frontend: 3003)
for /f "tokens=5" %%a in ('netstat -ano ^| findstr :8001 ^| findstr LISTENING') do (
taskkill /F /PID %%a >nul 2>&1
)
for /f "tokens=5" %%a in ('netstat -ano ^| findstr :3003 ^| findstr LISTENING') do (
taskkill /F /PID %%a >nul 2>&1
)
echo.
echo Dashboard servers stopped.
echo.
pause