restart.sh 624 Bytes
Newer Older
Rensq's avatar
Rensq committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#! /bin/shell

#======================================================================
# 项目重启shell脚本
# 先调用shutdown.sh停服
# 然后调用startup.sh启动服务
#
# author: geekidea
# date: 2018-12-2
#======================================================================

# 项目名称
APPLICATION="@project.name@"

# 项目启动jar包名称
APPLICATION_JAR="@build.finalName@.jar"

#项目路径
script_home=$(dirname $(readlink -f $0))

# 停服
echo stop ${APPLICATION} Application...
sh ${script_home}/shutdown.sh

# 启动服务
echo start ${APPLICATION} Application...
sh ${script_home}/startup.sh