mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
Update entrypoint.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f4caf4c7da
commit
0fc29d33db
@@ -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 &
|
||||
|
||||
Reference in New Issue
Block a user