13693261870
2024-08-16 d4a0e87490b4500f631ce8869d5afc900cb1f394
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
RUN_NAME="wgcloud-server-release.jar"
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 "wgcloud-server程序未启动"
else
   echo "已杀掉进程"
   echo $PID
   kill -9 $PID
fi