From e1eece34b72d51cc281a75b3907d8e2f42f07a6b Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Thu, 28 Dec 2017 11:28:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0restart=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/restart.bat | 9 +++++++++ bin/restart.sh | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 bin/restart.bat create mode 100644 bin/restart.sh 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 +