Files
pamietnik/backend/stop.sh
Christoph K. d0b0b4f8bd
Some checks failed
Deploy to NAS / deploy (push) Failing after 4s
Convert backend from submodule to regular directory
Remove submodule tracking; backend is now a plain directory in the repo.
Also update deploy workflow: remove --recurse-submodules.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 16:59:50 +02:00

13 lines
217 B
Bash
Executable File

#!/bin/bash
PORT="${LISTEN_ADDR:-:8081}"
PORT="${PORT#:}"
PID=$(lsof -ti:$PORT)
if [ -z "$PID" ]; then
echo "Server is not running on port $PORT"
exit 0
fi
kill $PID
echo "Server stopped (port $PORT, pid $PID)"