From a050a64f9b3c10e510c0aaa247810a0d944b100f Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <1769111741@qq.com> Date: Tue, 12 Dec 2023 10:42:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E4=B8=830.1=E6=96=B0=E6=B8=A0?= =?UTF-8?q?=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pay_reboot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pay_reboot.sh b/pay_reboot.sh index 4c6dd46..a599ea7 100644 --- a/pay_reboot.sh +++ b/pay_reboot.sh @@ -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 不存在." fi paths=/data/jieling/delivery-server