Skip to content

Commit

Permalink
chore: deploy.sh의 pid kill 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SSung023 committed Apr 11, 2024
1 parent bd355ab commit 8b69732
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down

0 comments on commit 8b69732

Please sign in to comment.