diff --git a/shell/bot.sh b/shell/bot.sh index c76589d4..fd46b2d6 100644 --- a/shell/bot.sh +++ b/shell/bot.sh @@ -22,7 +22,9 @@ pip3 --default-timeout=100 install -r requirements.txt --no-cache-dir echo echo -e "4、启动bot程序...\n" -pm2 restart jbot 2>/dev/null || pm2 start $dir_root/jbot -n jbot --interpreter=python3 -- -m +cd $dir_root +ps -ef | grep "python3 -m jbot" | grep -v grep | awk '{print $1}' | xargs kill -9 2>/dev/null +nohup python3 -m jbot & echo exit 0