Skip to content

Commit

Permalink
Update stop.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
essential2189 authored Feb 4, 2024
1 parent 374a93f commit 34a75d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ JAR="$ROOT_PATH/application.jar"
STOP_LOG="$ROOT_PATH/stop.log"
SERVICE_PID=$(pgrep -f $JAR) # 실행중인 Spring 서버의 PID

sudo iptables -D PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080

if [ -z "$SERVICE_PID" ]; then
echo "서비스 NouFound" >> $STOP_LOG
else
Expand Down

0 comments on commit 34a75d3

Please sign in to comment.