#!/bin/sh ulimit -n 100000 JAVA_HOME=/home/aoi/jdk CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib # tries to determine arguments to launch MsgSenderStarter PID=`$JAVA_HOME/bin/jps | grep MsgSenderStarter | awk '{print $1}'` #echo PID=$PID. if [ "" != "$PID" ] ; then echo " MsgSenderStarter is allready running, pid($PID)" exit 1; fi JAVA_HOME=/home/aoi/jdk CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib JVM_SETTINGS="-Xms512m -Xmx1024m" JVM_SETTINGS="" AOI_HOME="/home/aoi/sh-msgsender" AOI_LIB="$AOI_HOME/lib" AOI_OPTS=" -DAOI_HOME="$AOI_HOME" -Daoi.lib.dir=${AOI_LIB}" #export CLASSPATH=$CLASSPATH:$CMANAGER_LIB CLASSPATH2='.' for jarfile in `ls $AOI_LIB/*.jar` do CLASSPATH2=$CLASSPATH2:$jarfile done CLASSPATH2=$CLASSPATH2:$AOI_HOME/conf JAVA_DEBUG="" if [ -n $1 ]; then if [ "$1" = "debug" ] ; then echo is debug mode JAVA_DEBUG="-agentlib:jdwp=transport=dt_socket,address=8686,server=y,suspend=n" fi fi #echo JAVA_HOME=$JAVA_HOME export CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH END=">/dev/null 2>&1 &" # END="" cmanager_exec_command="$JAVA_HOME/bin/java -server $JVM_SETTINGS $JAVA_DEBUG $AOI_OPTS -cp $CLASSPATH2 com.cmcc.aoi.selfhelp.msgsender.MsgSenderStarter $END" # echo EXEC_CMD=$cmanager_exec_command eval $cmanager_exec_command echo MsgSenderStarter start sucessful... exit 0
捐助开发者
在兴趣的驱动下,写一个免费
的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(右上角的爱心标志,支持支付宝和PayPal捐助),没钱捧个人场,谢谢各位。
谢谢您的赞助,我会做的更好!