File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
out/production/classes/leets/reminiscence/global/config Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,11 @@ APP_LOG="$ROOT_PATH/application.log"
7
7
ERROR_LOG=" $ROOT_PATH /error.log"
8
8
START_LOG=" $ROOT_PATH /start.log"
9
9
10
- NOW=$( date +%c)
10
+ echo " $JAR 복사" >> $START_LOG
11
+ cp $ROOT_PATH /build/libs/reminiscence-0.0.1-SNAPSHOT.jar $JAR
11
12
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
16
14
nohup java -jar $JAR > $APP_LOG 2> $ERROR_LOG &
17
15
18
16
SERVICE_PID=$( pgrep -f $JAR )
19
- echo " [ $NOW ] > 서비스 PID: $SERVICE_PID " >> $START_LOG
17
+ echo " 서비스 PID: $SERVICE_PID " >> $START_LOG
Original file line number Diff line number Diff line change @@ -9,6 +9,5 @@ if [ -z "$SERVICE_PID" ]; then
9
9
echo " 서비스 NouFound" >> $STOP_LOG
10
10
else
11
11
echo " 서비스 종료 " >> $STOP_LOG
12
- kill " $SERVICE_PID "
13
- # kill -9 $SERVICE_PID # 강제 종료를 하고 싶다면 이 명령어 사용
14
- fi
12
+ kill -9 " $SERVICE_PID "
13
+ fi
You can’t perform that action at this time.
0 commit comments