Files
msh-system/models-integration/stop.sh

26 lines
541 B
Bash
Raw Normal View History

#!/bin/bash
# 停止销帮帮API集成应用
echo "停止销帮帮API集成应用..."
# 查找应用进程并停止
PID=$(ps -ef | grep xbb.api.demo | grep -v grep | awk '{print $2}')
if [ -z "$PID" ]; then
echo "应用未运行"
else
echo "正在停止应用进程ID: $PID"
kill $PID
# 等待进程结束
sleep 5
# 检查进程是否仍然存在
if ps -p $PID > /dev/null; then
echo "正常停止失败,强制停止进程"
kill -9 $PID
fi
echo "应用已停止"
fi