Skip to content

Commit

Permalink
chore: codedeploy에게 프로세스 종료 권한 부여
Browse files Browse the repository at this point in the history
  • Loading branch information
wonu606 authored Feb 20, 2024
1 parent f775ea5 commit 4d73d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CURRENT_PID=$(pgrep -f $JAR_PATH)
# 실행 중인 애플리케이션이 있으면 종료
if [[ -n $CURRENT_PID ]]; then
echo "종료할 프로세스 PID: $CURRENT_PID"
kill $CURRENT_PID
sudo kill $CURRENT_PID

# 프로세스가 종료될 때까지 대기
while ps -p $CURRENT_PID &>/dev/null; do
Expand Down

0 comments on commit 4d73d71

Please sign in to comment.