main
MonHun 2024-07-14 12:38:04 +09:00
parent 03475b3a31
commit cde919aedd
6 changed files with 113 additions and 14 deletions

View File

@ -1 +1 @@
18624 17596

View File

@ -1,13 +1,13 @@
[2024-05-28 00:48:31.572][I][StartupInfoLogger.logStarting ] Starting AsdeRecvApplication using Java 1.8.0_322 on DESKTOP-32A4E6F with PID 18624 (D:\Workspace\Odroid_repository\EyeGW_AsdeRecv\target\classes started by GMT in D:\Workspace\Odroid_repository\EyeGW_AsdeRecv\target\classes) [2024-07-08 07:42:03.241][I][StartupInfoLogger.logStarting ] Starting AsdeRecvApplication using Java 1.8.0_322 on DESKTOP-32A4E6F with PID 17596 (D:\Workspace\Odroid_repository\EyeGW_AsdeRecv\target\classes started by GMT in D:\Workspace\Odroid_repository\EyeGW_AsdeRecv\target\classes)
[2024-05-28 00:48:31.574][I][SpringApplication.logStartupProfileInfo ] The following 2 profiles are active: "default", "winTest" [2024-07-08 07:42:03.246][I][SpringApplication.logStartupProfileInfo ] The following 2 profiles are active: "default", "winTest"
[2024-05-28 00:48:38.243][I][StartupInfoLogger.logStarted ] Started AsdeRecvApplication in 7.417 seconds (JVM running for 9.053) [2024-07-08 07:42:08.212][I][StartupInfoLogger.logStarted ] Started AsdeRecvApplication in 5.898 seconds (JVM running for 7.674)
[2024-05-28 00:48:38.263][I][UDPManager.initializeUDPFromXML ] [UDPManager] Load file .. : D:\Workspace\Odroid_repository\EyeGW_AsdeRecv\cfg\udpsocket.xml [2024-07-08 07:42:08.233][I][UDPManager.initializeUDPFromXML ] [UDPManager] Load file .. : D:\Workspace\Odroid_repository\EyeGW_AsdeRecv\cfg\udpsocket.xml
[2024-05-28 00:48:38.400][I][UDPManager.initializeUDPFromXML ] [UDP Socket] ID : 1 IP : 127.0.0.1 PORT : 52114 [2024-07-08 07:42:08.330][I][UDPManager.initializeUDPFromXML ] [UDP Socket] ID : 1 IP : 127.0.0.1 PORT : 52114
[2024-05-28 00:48:40.130][I][UDPSocket.activeSocket ] [UDP Socket] MultiCalstGroup : +239.11.12.5 port:52114 [2024-07-08 07:42:09.631][I][UDPSocket.activeSocket ] [UDP Socket] MultiCalstGroup : +239.11.12.5 port:52114
[2024-05-28 00:48:40.130][I][UDPSocket.activeSocket ] [UDP Socket] recv : 127.0.0.1:52114 [2024-07-08 07:42:09.632][I][UDPSocket.activeSocket ] [UDP Socket] recv : 127.0.0.1:52114
[2024-05-28 00:48:40.131][I][UDPManager.startClient ] [UDP Manager][CONNECTED - PRIMARY][127.0.0.1][52114] [2024-07-08 07:42:09.633][I][UDPManager.startClient ] [UDP Manager][CONNECTED - PRIMARY][127.0.0.1][52114]
[2024-05-28 00:48:40.131][I][CustomThread.run ] [CustomThread] Started. [2024-07-08 07:42:09.634][I][CustomThread.run ] [CustomThread] Started.
[2024-05-28 00:48:40.134][I][AsterixSpecLoader.initCategory ] Initializing.. [2024-07-08 07:42:09.638][I][AsterixSpecLoader.initCategory ] Initializing..
[2024-05-28 00:48:40.344][I][AsterixSpecLoader.initCategory ] Category-10 Spec 로드 성공 (파일:spec/alterixCat010Indra.yml) [2024-07-08 07:42:09.789][I][AsterixSpecLoader.initCategory ] Category-10 Spec 로드 성공 (파일:spec/alterixCat010Indra.yml)
[2024-05-28 00:48:40.409][I][AsterixSpecLoader.initCategory ] Category-11 Spec 로드 성공 (파일:spec/alterixCat011.yml) [2024-07-08 07:42:09.883][I][AsterixSpecLoader.initCategory ] Category-11 Spec 로드 성공 (파일:spec/alterixCat011.yml)
[2024-05-28 00:48:40.410][I][AsterixSpecLoader.initCategory ] initialized. .. [2024-07-08 07:42:09.884][I][AsterixSpecLoader.initCategory ] initialized. ..

19
script/run.sh 100644
View File

@ -0,0 +1,19 @@
#! /bin/bash
APP_ROOT_DIR=/home/gmt/app
NAME_SERVICE=EyeAPN_AsdeRecv
NAME_JAR=EyeAPN_AsdeRecv.jar
NAME_PID=./application.pid
PATH_EXE_ROOT=$APP_ROOT_DIR/$NAME_SERVICE
PATH_EXE_JAR=$PATH_EXE_ROOT/$NAME_JAR
PATH_CONFIG=$PATH_EXE_ROOT/cfg
OPT_JAVA="-Dfile.encoding=UTF-8 -Dlogging.config=$PATH_CONFIG/logback-spring.xml"
OPT_SPRING="--spring.config.location=file:$PATH_CONFIG/application.yml"
cd $PATH_EXE_ROOT
echo java -jar $OPT_JAVA $PATH_EXE_JAR $OPT_SPRING
java -jar $OPT_JAVA $PATH_EXE_JAR $OPT_SPRING

29
script/start.sh 100644
View File

@ -0,0 +1,29 @@
#! /bin/bash
APP_ROOT_DIR=/home/gmt/app
NAME_SERVICE=EyeAPN_AsdeRecv
NAME_JAR=EyeAPN_AsdeRecv.jar
NAME_PID=./application.pid
PATH_EXE_ROOT=$APP_ROOT_DIR/$NAME_SERVICE
PATH_EXE_JAR=$PATH_EXE_ROOT/$NAME_JAR
PATH_CONFIG=$PATH_EXE_ROOT/cfg
OPT_JAVA="-Dfile.encoding=UTF-8 -Dlogging.config=$PATH_TO_CONFIG/logback-spring.xml"
OPT_SPRING="--spring.config.location=file:$PATH_CONFIG/application.yml"
cd $PATH_EXE_ROOT
echo java -jar $OPT_JAVA $PATH_EXE_JAR $OPT_SPRING
echo "Starting $NAME_SERVICE ..."
if [ ! -f $NAME_PID ]; then
nohup java -jar $OPT_JAVA $PATH_EXE_JAR $OPT_SPRING >> /dev/null &
echo $! > $PATH_EXE_ROOT/$NAME_PID
echo "$NAME_SERVICE started ..."
else
echo "$NAME_SERVICE is already running ..."
fi
exit 0

42
script/stop.sh 100644
View File

@ -0,0 +1,42 @@
#! /bin/bash
APP_ROOT_DIR=/home/gmt/app
NAME_SERVICE=EyeAPN_AsdeRecv
NAME_JAR=EyeAPN_AsdeRecv.jar
NAME_PID=application.pid
PATH_EXE_ROOT=$APP_ROOT_DIR/$NAME_SERVICE
PATH_EXE_JAR=$PATH_EXE_ROOT/$JAR_NAME
PATH_CONFIG=$PATH_EXE_ROOT/cfg
OPT_JAVA="-Dfile.encoding=UTF-8"
OPT_SPRING="--spring.config.location=file:$PATH_CONFIG/application.yml"
cd $PATH_EXE_ROOT
if [ -f $NAME_PID ]; then
PID=$(cat $PATH_EXE_ROOT/$NAME_PID);
echo "$NAME_SERVICE stoping(${PID}) ..."
if [ -n "${PID}" ]; then
kill -9 $PID;
fi
echo "$NAME_SERVICE stopped(${PID}) ..."
rm $NAME_PID
else
PID=$(ps ax | grep $NAME_SERVICE | grep -v 'grep' | grep -v $0 | awk '{print $1}')
if [ -n "${PID}" ]; then
echo pid : ${PID} / length : ${#PID}
echo "$NAME_SERVICE stoping ..."
kill -9 $PID;
echo "$NAME_SERVICE(${PID}) stopped ..."
else
echo "$NAME_SERVICE is not running ..."
fi
fi
exit 0

9
script/tail.sh 100644
View File

@ -0,0 +1,9 @@
#! /bin/bash
APP_ROOT_DIR=/home/gmt/app
NAME_SERVICE=EyeAPN_AsdeRecv
PATH_EXE_ROOT=$APP_ROOT_DIR/$NAME_SERVICE
tail -F $PATH_EXE_ROOT/logs/trace.log -n 100