From adc141c35c84f038d15969d5654681478154bf19 Mon Sep 17 00:00:00 2001 From: yuzchen Date: Wed, 24 Jan 2024 09:42:33 +0800 Subject: [PATCH] add --- scripts/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 93e11d5..a5b2bfe 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -7,7 +7,7 @@ if [ -z "$P_ID" ]; then echo "==Demo service process does not exist" else # 尝试优雅地关闭应用程序 - kill -SIGTERM "$P_ID" + kill -9 "$P_ID" wait "$P_ID" 2>/dev/null # 检查进程是否仍在运行 @@ -15,7 +15,7 @@ else echo "Demo service process was terminated gracefully" else # 如果优雅关闭失败,则强制杀死进程 - kill -SIGKILL "$P_ID" + kill -9 "$P_ID" echo "Demo service process was killed forcefully" fi fi