From 6c2b2b7ba2befa87f283fa52117a3f78b77a53e5 Mon Sep 17 00:00:00 2001 From: hzg0601 Date: Thu, 10 Aug 2023 09:38:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95llm=5Fapi=5Fshutdown.py,?= =?UTF-8?q?=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/llm_api_shutdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/llm_api_shutdown.py b/server/llm_api_shutdown.py index 5eda381..eecefd0 100644 --- a/server/llm_api_shutdown.py +++ b/server/llm_api_shutdown.py @@ -15,7 +15,7 @@ parser.add_argument("--serve",choices=["all","controller","model_worker","openai args = parser.parse_args() -base_shell = "ps -eo user,pid,cmd|grep fastchat.serve{}|grep -v grep|awk '{print $2}'|xargs kill -9" +base_shell = "ps -eo user,pid,cmd|grep fastchat.serve{}|grep -v grep|awk '{{print $2}}'|xargs kill -9" if args.serve == "all": shell_script = base_shell.format("")