Skip to content

Commit bd0cd30

Browse files
committed
fixing CI/CD
1 parent cbfbc64 commit bd0cd30

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed
228 Bytes
Binary file not shown.

scripts/start.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ APP_LOG="$ROOT_PATH/application.log"
77
ERROR_LOG="$ROOT_PATH/error.log"
88
START_LOG="$ROOT_PATH/start.log"
99

10-
NOW=$(date +%c)
10+
echo "$JAR 복사" >> $START_LOG
11+
cp $ROOT_PATH/build/libs/reminiscence-0.0.1-SNAPSHOT.jar $JAR
1112

12-
echo "[$NOW] $JAR 복사" >> $START_LOG
13-
cp $ROOT_PATH/build/libs/reminiscence-1.0.0.jar $JAR
14-
15-
echo "[$NOW] > $JAR 실행" >> $START_LOG
13+
echo "$JAR 실행" >> $START_LOG
1614
nohup java -jar $JAR > $APP_LOG 2> $ERROR_LOG &
1715

1816
SERVICE_PID=$(pgrep -f $JAR)
19-
echo "[$NOW] > 서비스 PID: $SERVICE_PID" >> $START_LOG
17+
echo "서비스 PID: $SERVICE_PID" >> $START_LOG

scripts/stop.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ if [ -z "$SERVICE_PID" ]; then
99
echo "서비스 NouFound" >> $STOP_LOG
1010
else
1111
echo "서비스 종료 " >> $STOP_LOG
12-
kill "$SERVICE_PID"
13-
# kill -9 $SERVICE_PID # 강제 종료를 하고 싶다면 이 명령어 사용
14-
fi
12+
kill -9 "$SERVICE_PID"
13+
fi

0 commit comments

Comments
 (0)