From 70fdec55744234c2617791019fa33cd072d2f909 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Fri, 18 Sep 2020 17:50:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E6=B7=BB=E5=8A=A0n?= =?UTF-8?q?ginx=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index d39be83..0c1c7e8 100644 --- a/install.sh +++ b/install.sh @@ -357,7 +357,11 @@ handleNginx(){ fi elif [[ "$1" = "stop" ]] && [[ ! -z `ps -ef|grep -v grep|grep nginx` ]] then - nginx -s stop + nginx -s stop > /dev/null 2>&1 + if [[ ! -z `ps -ef|grep -v grep|grep nginx` ]] + then + ps -ef|grep -v grep|grep nginx|awk '{print $2}'|xargs kill -9 + fi fi } # 定时任务更新tls证书