litellm/docker/prod_entrypoint.sh
2026-02-03 10:53:41 -05:00

16 lines
No EOL
436 B
Bash

#!/bin/sh
if [ "$SEPARATE_HEALTH_APP" = "1" ]; then
export LITELLM_ARGS="$@"
export SUPERVISORD_STOPWAITSECS="${SUPERVISORD_STOPWAITSECS:-3600}"
exec supervisord -c /etc/supervisord.conf
fi
if [ "$USE_DDTRACE" = "true" ]; then
export DD_TRACE_OPENAI_ENABLED="False"
exec ddtrace-run litellm "$@"
elif [ "$USE_NEWRELIC" = "true" ]; then
exec newrelic-admin run-program litellm "$@"
else
exec litellm "$@"
fi