From 84358ce5b4a2ce3e79b7cf5cad386decf2521a4c Mon Sep 17 00:00:00 2001 From: Andrew Stout Date: Sat, 16 Aug 2025 15:30:47 -0500 Subject: [PATCH] Start and stop service while updating --- ct/litellm.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ct/litellm.sh b/ct/litellm.sh index 2fb7fcb4..975f93c8 100644 --- a/ct/litellm.sh +++ b/ct/litellm.sh @@ -29,11 +29,19 @@ function update_script() { exit fi + msg_info "Stopping ${APP}" + systemctl stop litellm.service + msg_ok "Stopped ${APP}" + msg_info "Updating $APP" VENV_PATH="/opt/litellm/.venv" PYTHON_VERSION="3.13" setup_uv $STD "$VENV_PATH/bin/python" -m pip install --upgrade litellm[proxy] prisma - msg_ok "Updated $APP" + + msg_info "Starting ${APP}" + systemctl start litellm.service + msg_ok "Started ${APP}" + msg_ok "Updated Successfully" exit }