Update entrypoint.sh

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Georges-Antoine Assi
2025-06-18 23:49:44 -04:00
committed by GitHub
parent f4caf4c7da
commit 0fc29d33db

View File

@@ -12,6 +12,14 @@ mkdir -p /app/frontend/assets/romm
ln -sf /app/romm_mock/resources /app/frontend/assets/romm/resources
ln -sf /app/romm_mock/assets /app/frontend/assets/romm/assets
# Define a signal handler to propagate termination signals
function handle_termination() {
echo "Terminating child processes..."
kill -TERM $(jobs -p) 2>/dev/null
}
# Trap SIGTERM and SIGINT signals
trap handle_termination SIGTERM SIGINT
# Start all services in the background
cd /app/backend
poetry run python main.py &