Files
DentalManagement09/stop-app.sh
T
GiteadandClaude Sonnet 5 8f9fd13208 fix: update hardcoded folder name from DentalManagementMH07 to DentalManagement09
Scripts still referenced the old project folder name after the rename,
which broke the desktop shortcuts and start/stop scripts.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-03 15:51:17 -04:00

20 lines
635 B
Bash
Executable File

#!/bin/bash
# Kill processes by port (backend 5000, selenium 5002, patient extractor 5001, payment OCR 5003, frontend 3000/3001)
for PORT in 5000 5001 5002 5003 3000 3001; do
PIDS=$(lsof -ti :$PORT 2>/dev/null)
if [ -n "$PIDS" ]; then
echo "Killing port $PORT (PID $PIDS)"
kill -9 $PIDS 2>/dev/null
fi
done
# Kill any remaining turbo / ts-node-dev / vite processes for this project
PROJECT="DentalManagement09"
pkill -9 -f "turbo.*$PROJECT" 2>/dev/null
pkill -9 -f "ts-node-dev.*$PROJECT" 2>/dev/null
pkill -9 -f "vite.*$PROJECT" 2>/dev/null
pkill -9 -f "agent.py" 2>/dev/null
echo "All Dental App processes stopped."