-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstop.bat
More file actions
31 lines (25 loc) · 726 Bytes
/
stop.bat
File metadata and controls
31 lines (25 loc) · 726 Bytes
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
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
:: Print header
echo ===================================
echo Stop All Running Processes
echo ===================================
echo.
:: Stop Ganache
echo [1/3] Stopping Ganache...
for /f "tokens=5" %%a in ('netstat -ano ^| findstr :7545') do (
echo Found Ganache process with PID %%a
taskkill /PID %%a /F
)
:: Stop Node processes (Truffle and Frontend)
echo [2/3] Stopping Node processes...
taskkill /F /IM node.exe
:: Stop Python processes (Backend Django)
echo [3/3] Stopping Python processes...
taskkill /F /IM python.exe
echo.
echo ===================================
echo All Processes Have Been Stopped
echo ===================================
echo.
pause