master
PC-202302260912\Administrator 2023-08-03 15:08:19 +08:00
parent 92d983e5f8
commit 5db6fc71a5
1 changed files with 3 additions and 3 deletions

View File

@ -7,11 +7,11 @@ process_count=`ps -ef|grep java|grep "${process_name}"|awk '{print $2}'`
# 判断进程数是否大于0如果大于0则进程存在否则进程不存在
if [ -z "$process_count" ]; then
echo "进程 $process_name 不存在."
else
echo "进程 $process_name 存在."
kill $process_count
sleep 5
else
echo "进程 $process_name 不存在."
sleep 3
fi
paths="/data/jieling/gm"