当前位置:   article > 正文

jenkins-dubbo

dubbo jenkins
rosefinch-base-job\target\rosefinch-base-job.jar,rosefinch-base-job\target\lib\*.jar
rosefinch-base-job\target
server/rosefinch-base-job
/opt/server/rosefinch-base-job/service-bdm-job.sh

#!/bin/sh ## java env export JAVA_HOME=/opt/jdk1.7.0_79 export JRE_HOME=$JAVA_HOME/jre ## service name APP_NAME=fosp-service SERVICE_DIR=/opt/server/rosefinch-fosp SERVICE_NAME=rosefinch-$APP_NAME JAR_NAME=$SERVICE_NAME\.jar PID=$SERVICE_NAME\.pid cd $SERVICE_DIR case "$1" in start) nohup $JRE_HOME/bin/java -Xms256m -Xmx256m -jar $JAR_NAME >/dev/null 2>&1 & echo $! > $SERVICE_DIR/$PID echo "=== start $SERVICE_NAME" ;; stop) kill `cat $SERVICE_DIR/$PID` rm -rf $SERVICE_DIR/$PID echo "=== stop $SERVICE_NAME" sleep 5 P_ID=`ps -ef | grep $JAR_NAME | grep jdk | awk '{print $2}'` if [ "$P_ID" == "" ]; then echo "=== $SERVICE_NAME process not exists or stop success" else echo "=== $SERVICE_NAME process pid is:$P_ID" echo "=== begin kill $SERVICE_NAME process, pid is:$P_ID" kill -9 $P_ID fi ;; restart) $0 stop sleep 2 $0 start echo "=== restart $SERVICE_NAME" ;; *) ## restart $0 stop sleep 2 $0 start ;; esac exit 0

  

转载于:https://www.cnblogs.com/zfzf1/p/8392270.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/169593
推荐阅读
相关标签
  

闽ICP备14008679号