This commit is contained in:
aozhiwei 2020-02-01 18:46:08 +08:00
parent c30ee7f6f2
commit 90d0954da4

View File

@ -1,26 +1,26 @@
#!/bin/sh #!/bin/sh
# #
#ulimit -HSn 500000 #ulimit -HSn 500000
PRG="$0" PRG="$0"
while [ -h "$PRG" ]; do while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"` ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'` link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then if expr "$link" : '/.*' > /dev/null; then
PRG="$link" PRG="$link"
else else
PRG=`dirname "$PRG"`/"$link" PRG=`dirname "$PRG"`/"$link"
fi fi
done done
# Get standard environment variables # Get standard environment variables
PRGDIR=`dirname "$PRG"` PRGDIR=`dirname "$PRG"`
APP_HOME=`cd "$PRGDIR/.." >/dev/null; pwd` APP_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
#pidFile="${APP_HOME}/bin/app.pid" #pidFile="${APP_HOME}/bin/app.pid"
#kill -15 `cat $pidFile` #kill -15 `cat $pidFile`
APP="${APP_HOME}/lib/web-gate-1.0.jar" APP="${APP_HOME}/lib/web-gate-1.0.jar"
pkill -f $APP pkill -f $APP