You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
honor-dd-light-ds-java/docs/bin/shutdown.sh

13 lines
289 B
Bash

#! /bin/shell
# 停服
APPLICATION="spring-boot-plus.jar"
PID=$(ps -ef | grep ${APPLICATION} | grep -v grep | awk '{ print $2 }')
if [ -z "$PID" ]
then
echo ${APPLICATION} is already stopped
else
echo kill ${PID}
kill -9 ${PID}
echo ${APPLICATION} stopped successfully
fi