1 Star 0 Fork 111

疯子 / wind-im

forked from WindChat / wind-im 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
stop.sh 576 Bytes
一键复制 编辑 原始数据 按行查看 历史
SAM2O2O 提交于 2019-11-27 23:46 . update start.sh stop.sh
#!/bin/bash
PORT=$1
IS_RESTART=$2
JAVA_JAR="windchat-server"
##set tcp port
if [ -n $PORT ]; then
PORT=2021
fi
echo "[OK] WindChat is closing [PORT:"$PORT"]"
PID=$(ps -ef|grep $JAVA_JAR|grep $PORT |head -1| awk '{printf $2}')
#if [ $? -eq 0 ]; then
if [ $PID ]; then
echo "[OK] WindChat is running on [PID:"$PID"]"
else
echo "[ERROR] WindChat stop failure, as it's not running."
echo ""
exit
fi
kill -9 ${PID}
if [ $? -eq 0 ];then
echo "[OK] WindChat is stoped [PORT:"$PORT" PID:"$PID"]"
else
echo "[ERROR] WindChat stop failure."
fi
echo ""
Java
1
https://gitee.com/abcda/wind-im.git
git@gitee.com:abcda/wind-im.git
abcda
wind-im
wind-im
master

搜索帮助