#!/bin/bash
# Aggressively kill all ComfyUI/python processes
pkill -9 -f 'python.*main.py' 2>/dev/null
pkill -9 -f 'python.*comfyui' 2>/dev/null
sleep 3
if pgrep -f 'python.*main.py' > /dev/null 2>&1; then
    echo "STILL RUNNING"
    ps aux | grep python | grep -v grep
else
    echo "ALL STOPPED"
fi
