#!/bin/bash
if [ -f /opt/front-Prod/backend.pid ]; then
    PID=$(cat /opt/front-Prod/backend.pid)
    kill $PID 2>/dev/null && echo "Prod backend (PID $PID) stopped" || echo "Prod backend not running"
    rm /opt/front-Prod/backend.pid
else
    echo "No PID file found"
fi
