Restructured project by moving files from subfolder to main directory

This commit is contained in:
Andreas Düren
2025-03-16 14:06:02 +01:00
parent 15fd04ef70
commit 14f2e66c2f
14 changed files with 320 additions and 92 deletions

23
stop.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
set -e
# Check if Elasticsearch is running
if [ -f /app/data/elasticsearch.pid ]; then
echo "Stopping Elasticsearch..."
PID=$(cat /app/data/elasticsearch.pid)
if kill -0 "$PID" 2>/dev/null; then
kill "$PID"
echo "Waiting for Elasticsearch to stop..."
# Wait for process to end
while kill -0 "$PID" 2>/dev/null; do
sleep 1
done
else
echo "Elasticsearch process not found, cleaning up PID file."
fi
rm -f /app/data/elasticsearch.pid
else
echo "Elasticsearch PID file not found, nothing to stop."
fi
echo "Elasticsearch stopped."