#!/bin/sh
#. /etc/profile
run_user=“XXX”
base_dir="/XXX"
service_name= 2 s e r v i c e p a t h = " 2 service_path=" 2servicepath="{base_dir}/erp/ s e r v i c e n a m e . j a r " s e r v i c e p i d = " {service_name}.jar" service_pid=" servicename.jar"servicepid="{base_dir}/erp/ s e r v i c e n a m e . p i d " t i m e n o w = ‘ d a t e + s e l f d i r = {service_name}.pid" time_now=`date +%Y_%m_%d:%H:%M:%S` self_dir= servicename.pid"timenow=‘date+selfdir=(cd “$(dirname “$0”)”; pwd)
server_port=$3
#spring boot 优雅停止,必须开启配置选项:endpoints.shutdown.enabled=true
spring_boot_enabled=true
#java_path="/usr/local/jdk/bin/java"
. /etc/profile
############### for pinpoint agent id ##############
local_ip(){
#获取本地ip地址
LOCAL_IP=ifconfig eth0|grep inet|awk '{print $2}'
#判断是否腾讯云地址
echo $LOCAL_IP|grep “^10.12[4-5].[0-9]{1,3}.[0-9]{1,3}” > /dev/null
if [ ? − n e 0 ] ; t h e n e c h o " 腾 讯 云 内 网 地 址 不 正 确 ? -ne 0 ];then echo &