Files
weiyu/deploy/server/stop.sh

31 lines
1.1 KiB
Bash
Raw Normal View History

2024-08-09 11:06:35 +08:00
#!/bin/sh
###
# @Author: jackning 270580156@qq.com
# @Date: 2024-08-09 10:35:30
# @LastEditors: jackning 270580156@qq.com
2024-10-21 07:19:58 +08:00
# @LastEditTime: 2024-10-14 07:56:18
2024-08-09 11:06:35 +08:00
# @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
# Please be aware of the BSL license restrictions before installing Bytedesk IM
# selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
# 仅支持企业内部员工自用严禁私自用于销售、二次销售或者部署SaaS方式销售
# Business Source License 1.1: https://github.com/Bytedesk/bytedesk/blob/main/LICENSE
# contact: 270580156@qq.com
# 联系270580156@qq.com
# Copyright (c) 2024 by bytedesk.com, All Rights Reserved.
###
2024-10-21 07:19:58 +08:00
RUN_NAME="bytedesk-starter.jar"
2024-08-09 11:06:35 +08:00
export LANG="en_US.UTF-8"
PRG=$0
APPDIRFILE=`dirname "$PRG"`
echo $APPDIRFILE/$RUN_NAME
PID=`ps -ef|grep $RUN_NAME|grep -v grep|awk '{printf $2}'`
echo $PID
if [ ! -n "$PID" ];
then
echo "bytedesk程序未启动"
else
echo "已杀掉进程"
echo $PID
ps -ef | grep $RUN_NAME | grep -v grep | awk '{print $2}' | xargs kill
fi