OpenMediation Data Collector is used for pulling data from AdNetworks API
This service should run singleton.
You can package using mvn.
mvn clean package -Dmaven.test.skip=true
After packaging is complete, you can find "on-adc.jar" in the directory "target".
"om-adc.jar" is a executable jar, see springboot
"application-prod.yml"
replace auth.domain to om-ds-server host:port
auth:
dir: auth
domain: {om-ds-server}
"om-adc.conf"
## springboot cfg ###
MODE=service
APP_NAME=om-adc
#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-adc.conf" and "om-adc.jar" in the same directory.
mkdir -p log
./om-adc.jar start
tail -f log/stdout.log
./om-adc.jar stop
./om-adc.jar restart