#!/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!"