#!/bin/sh #if [ $# -ne 1 ]; then # echo "-----------------------------------" # echo " Undefined parameter" # echo "./startApi.sh [application name]" # echo "-----------------------------------" # exit 1 #fi # #if [ ! -f "../$1.jar" ]; then # echo "===================================" # echo " $1.jar file not exist" # echo "===================================" # exit 1 #fi # echo "================================" echo " adds-api application start" echo "================================" JAVA_HOME=/lib/jvm/jdk-17.0.2 export JAVA_HOME nohup $JAVA_HOME/bin/java -Dspring.profiles.active=prod -jar /applications/adds/adds-api.jar > /dev/null &