File size: 323 Bytes
e7d37f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

echo "🛑 Stopping all microserviços..."
echo ""

# Matar processos nas portas
for port in 5001 5002 5003 5004 8080; do
    PID=$(lsof -ti:$port)
    if [ ! -z "$PID" ]; then
        echo "Stopping service on port $port (PID: $PID)..."
        kill $PID
    fi
done

echo ""
echo "✅ All services stopped!"