Skip to content

Commit

Permalink
Merge pull request #277 from sopt-makers/feat/#251
Browse files Browse the repository at this point in the history
[FIX] 로그 파일 권한 문제로 발생하는 스크립트 오류 수정
  • Loading branch information
yeseul106 authored Jul 17, 2024
2 parents 554cbcd + 3b98b3f commit c083875
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ hooks:
ApplicationStart:
- location: scripts/run_new_was.sh
timeout: 180
runas: ubuntu
runas: root
- location: scripts/health_check.sh
timeout: 500
runas: ubuntu
runas: root
- location: scripts/switch.sh
timeout: 180
runas: ubuntu
runas: root
2 changes: 1 addition & 1 deletion scripts/run_new_was.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ TARGET_PID=$(lsof -Fp -i TCP:${TARGET_PORT} | grep -Po 'p[0-9]+' | grep -Po '[0-

if [ ! -z ${TARGET_PID} ]; then
echo "> Kill WAS running at ${TARGET_PORT}."
sudo kill ${TARGET_PID}
sudo kill -15 ${TARGET_PID}
fi

if [ "$DEPLOYMENT_GROUP_NAME" == "prod" ]
Expand Down
2 changes: 1 addition & 1 deletion scripts/switch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ echo "> Nginx reloaded."

CURRENT_PID=$(lsof -Fp -i TCP:${CURRENT_PORT} | grep -Po 'p[0-9]+' | grep -Po '[0-9]+')

sudo kill ${CURRENT_PID}
sudo kill -15 ${CURRENT_PID}

0 comments on commit c083875

Please sign in to comment.