更新bot启动脚本

This commit is contained in:
whyour 2021-05-08 16:05:17 +08:00
parent 989c4228c1
commit a36926a5bd

View File

@ -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