diff --git a/bin/restart.bat b/bin/restart.bat new file mode 100644 index 000000000..65462f47f --- /dev/null +++ b/bin/restart.bat @@ -0,0 +1,9 @@ +@ECHO OFF + +SET APP_HOME=%~dp0 + +IF NOT EXIST "%APP_HOME%\conf\application.xml" SET APP_HOME=%~dp0.. + +call %APP_HOME%\bin\shutdown.bat + +call %APP_HOME%\bin\start.bat \ No newline at end of file diff --git a/bin/restart.sh b/bin/restart.sh new file mode 100644 index 000000000..99e0f96cf --- /dev/null +++ b/bin/restart.sh @@ -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 +