OpenMediation Data Task is a Data Process Center.
This service should run singleton.
It provide api and pb data for OM-Server
You can package using mvn.
mvn clean package -Dmaven.test.skip=true
After packaging is complete, you can find "om-dtask.jar" in the directory "target".
"om-dtask.jar" is a executable jar, see springboot
"om-dtask.conf"
## springboot cfg ###
MODE=service
APP_NAME=om-dtask
#JAVA_HOME=/usr/local/java/jdk
JAVA_OPTS="-Dapp=$APP_NAME\
-Duser.timezone=UTC\
-Xmx3g\
-Xms1g\
-server"
RUN_ARGS="--spring.profiles.active=prod"
PID_FOLDER=log
LOG_FOLDER=log
LOG_FILENAME=stdout.log
put "om-dtask.conf" and "om-dtask.jar" in the same directory.
├── om-dtask.conf
├── om-dtask.jar
└── log
mkdir -p log
./om-dtask.jar start
tail -f log/stdout.log
./om-dtask.jar stop
./om-dtask.jar restart