增加restart脚本

This commit is contained in:
Redkale
2017-12-28 11:28:47 +08:00
parent 19d6a06bfa
commit e1eece34b7
2 changed files with 29 additions and 0 deletions

20
bin/restart.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
export LC_ALL="zh_CN.UTF-8"
APP_HOME=`dirname "$0"`
cd "$APP_HOME"/..
APP_HOME=`pwd`
if [ ! -f "$APP_HOME"/conf/application.xml ]; then
APP_HOME="$APP_HOME"/..
fi
cd "$APP_HOME"
./bin/shutdown.sh
./bin/start.sh