Skip to content

Commit

Permalink
#251 [ADD] kill 명령어 옵션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yeseul106 committed Jul 16, 2024
1 parent a417d11 commit 21796a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 21796a7

Please sign in to comment.