mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
24 lines
425 B
Bash
Executable file
24 lines
425 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
PIDS=()
|
|
|
|
log() { echo "$(date '+%F %T') - $*"; }
|
|
|
|
cleanup() {
|
|
log "Stopping agents..."
|
|
for PID in "${PIDS[@]}"; do
|
|
kill $PID 2>/dev/null && log "Stopped process $PID"
|
|
done
|
|
exit 0
|
|
}
|
|
|
|
trap cleanup EXIT INT TERM
|
|
|
|
log "Starting rag_energy_source_agent on port 18083..."
|
|
uv run uvicorn main:app --host 0.0.0.0 --port 18083 &
|
|
PIDS+=($!)
|
|
|
|
for PID in "${PIDS[@]}"; do
|
|
wait "$PID"
|
|
done
|