From c30ee7f6f29677c8b4933a93428046350455d37f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 1 Feb 2020 18:45:43 +0800 Subject: [PATCH] 1 --- bin/shutdown.sh | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) mode change 120000 => 100755 bin/shutdown.sh diff --git a/bin/shutdown.sh b/bin/shutdown.sh deleted file mode 120000 index 97b86dd..0000000 --- a/bin/shutdown.sh +++ /dev/null @@ -1 +0,0 @@ -../third_party/wjtx/game-web/trunk/web-gate/target/web-gate/web-gate/shutdown.sh \ No newline at end of file diff --git a/bin/shutdown.sh b/bin/shutdown.sh new file mode 100755 index 0000000..4b8583b --- /dev/null +++ b/bin/shutdown.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# +#ulimit -HSn 500000 + +PRG="$0" + +while [ -h "$PRG" ]; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`/"$link" + fi +done + +# Get standard environment variables +PRGDIR=`dirname "$PRG"` + +APP_HOME=`cd "$PRGDIR/.." >/dev/null; pwd` + +#pidFile="${APP_HOME}/bin/app.pid" +#kill -15 `cat $pidFile` + +APP="${APP_HOME}/lib/web-gate-1.0.jar" +pkill -f $APP