9 lines
274 B
Bash
Executable File
9 lines
274 B
Bash
Executable File
#!/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
|