-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstop.bat
More file actions
34 lines (30 loc) · 1.02 KB
/
Copy pathstop.bat
File metadata and controls
34 lines (30 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
echo ========================================
echo Stopping Interview Platform Services
echo ========================================
echo.
echo Killing Node.js processes...
taskkill /F /IM node.exe >nul 2>&1
if %errorlevel% equ 0 (
echo [SUCCESS] Node.js processes stopped
) else (
echo [INFO] No Node.js processes found
)
echo.
echo Killing Python processes...
taskkill /F /IM python.exe >nul 2>&1
if %errorlevel% equ 0 (
echo [SUCCESS] Python processes stopped
) else (
echo [INFO] No Python processes found
)
echo.
echo Cleaning up ports...
for /f "tokens=5" %%a in ('netstat -aon ^| find ":5000" ^| find "LISTENING"') do taskkill /F /PID %%a >nul 2>&1
for /f "tokens=5" %%a in ('netstat -aon ^| find ":3000" ^| find "LISTENING"') do taskkill /F /PID %%a >nul 2>&1
for /f "tokens=5" %%a in ('netstat -aon ^| find ":8080" ^| find "LISTENING"') do taskkill /F /PID %%a >nul 2>&1
echo.
echo ========================================
echo All Services Stopped
echo ========================================
pause