Added documentation and start stop scripts.

This commit is contained in:
2026-01-05 08:50:18 -05:00
parent bbaa0daa7b
commit 5823ca3c39
3 changed files with 132 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash
PROJECT_ROOT=$(pwd)
PID_FILE="$PROJECT_ROOT/.server_manager.pids"
if [ ! -f "$PID_FILE" ]; then
echo "No PID file found. Is the app running?"
exit 1
fi
echo "Stopping application..."
while read pid; do
if ps -p $pid > /dev/null; then
echo "Killing process $pid"
kill $pid
else
echo "Process $pid not found"
fi
done < "$PID_FILE"
rm "$PID_FILE"
echo "Application stopped."