From 8b69732280689669dfaf457fc8d29ca3636be2d4 Mon Sep 17 00:00:00 2001 From: SSung023 <50323157+SSung023@users.noreply.github.com> Date: Thu, 11 Apr 2024 20:23:24 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20deploy.sh=EC=9D=98=20pid=20kill=20?= =?UTF-8?q?=EB=B6=80=EB=B6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index ba9c1b5f..27fa8fc1 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -8,8 +8,9 @@ echo ">>> build 파일 복사" >> /home/ubuntu/deploy.log DEPLOY_PATH=/home/ubuntu/app/ cp $BUILD_JAR $DEPLOY_PATH -echo ">>> 현재 실행중인 애플리케이션 pid 확인" >> /home/ubuntu/deploy.log -pkill -9 -ef java +echo ">>> 현재 실행중인 애플리케이션 pid 확인 후 일괄 종료" >> /home/ubuntu/deploy.log +sudo ps -ef | grep java | awk '{print $2}' | xargs kill -15 +#pkill -9 -ef java #CURRENT_PID=$(pgrep -f $JAR_NAME) # #if [ -z $CURRENT_PID ]