forked from OwenPendrighElliott/ingrain_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
22 lines (22 loc) · 873 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# #!/bin/bash
# shutdown() {
# echo "Gracefully shutting down..."
# pkill -SIGTERM -f tritonserver
# pkill -SIGTERM -f "uvicorn inference_server:app"
# pkill -SIGTERM -f "uvicorn model_server:app"
# echo "All processes terminated. Exiting."
# exit 0
# }
# trap shutdown SIGTERM SIGINT
# bash /app/hello.sh
# nohup tritonserver --model-repository=/app/model_repository --model-control-mode=explicit > /app/tritonserver.log 2>&1 &
# nohup uvicorn inference_server:app --host 0.0.0.0 --port 8686 --log-level="error" --workers $(nproc) > /app/inference_server.log 2>&1 &
# nohup uvicorn model_server:app --host 0.0.0.0 --port 8687 > /app/model_server.log 2>&1 &
#!/bin/bash
set -e
# Run hello.sh
echo "Running hello.sh..."
bash /app/hello.sh
# Start Supervisord
echo "Starting Supervisord..."
exec supervisord -c /etc/supervisor/conf.d/supervisord.conf