#!/bin/bash echo "Starting Uvicorn..." uvicorn main:app --host 0.0.0.0 --port 8000 & echo "Starting Indexer daemon..." python indexer.py & # Wait for any process to exit wait -n # Exit with status of process that exited first exit $?