模仿TOMCAT start.sh

阅读更多
#!/bin/bash
PRG="$0"
PRGDIR=`dirname "$PRG"`
CATALINA_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
cd $CATALINA_HOME
java -jar $CATALINA_HOME/boot-1.0.jar org.jpos.ext.groovy.Boot $CATALINA_HOME >> $CATALINA_HOME/logs/
catalina.out 2>&1 &
if [ ! -z "$CATALINA_PID" ]; then
    echo $! > "$CATALINA_PID"
fi

 

你可能感兴趣的:(模仿TOMCAT start.sh)