From a36926a5bd6b5358b8bb6d70ec1ac48165261dd1 Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 8 May 2021 16:05:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0bot=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/bot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/bot.sh b/shell/bot.sh index 25b3b09d..f76ad609 100644 --- a/shell/bot.sh +++ b/shell/bot.sh @@ -17,7 +17,7 @@ cp -f "$repo_path/config/bot.json" "$dir_root/config" echo -e "3、启动bot程序...\n" cd $dir_root -kill -9 $(ps -ef | grep "python3 -m jbot" | grep -v grep | awk '{print $1}') 2>/dev/null +ps -ef | grep "python3 -m jbot" | grep -v grep | awk '{print $1}' | xargs kill -9 2>/dev/null nohup python3 -m jbot & exit 0