更新bot启动脚本

This commit is contained in:
whyour 2021-05-10 20:16:42 +08:00
parent b1bfb62fa4
commit c67c3088f8

View File

@ -22,7 +22,9 @@ pip3 --default-timeout=100 install -r requirements.txt --no-cache-dir
echo echo
echo -e "4、启动bot程序...\n" 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 echo
exit 0 exit 0