mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-28 23:46:06 +08:00
Merge 6a691444af
into a7e404c5d5
This commit is contained in:
commit
23e9761561
|
@ -32,7 +32,7 @@ echo -e "定时任务启动成功...\n"
|
||||||
|
|
||||||
if [[ $AutoStartBot == true ]]; then
|
if [[ $AutoStartBot == true ]]; then
|
||||||
echo -e "======================6. 启动bot========================\n"
|
echo -e "======================6. 启动bot========================\n"
|
||||||
nohup ql bot >>$dir_log/start.log 2>&1 &
|
pm2 start $dir_root/jbot/ecosystem.config.js
|
||||||
echo -e "bot后台启动中...\n"
|
echo -e "bot后台启动中...\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
13
shell/bot.sh
13
shell/bot.sh
|
@ -46,7 +46,14 @@ echo -e "\npython3依赖安装成功...\n"
|
||||||
|
|
||||||
echo -e "4、启动bot程序...\n"
|
echo -e "4、启动bot程序...\n"
|
||||||
make_dir $dir_log/bot
|
make_dir $dir_log/bot
|
||||||
cd $dir_root
|
if [[ -z ${BotRepoUrl} ]]; then
|
||||||
ps -ef | grep "python3 -m jbot" | grep -v grep | awk '{print $1}' | xargs kill -9 2>/dev/null
|
cd $dir_root
|
||||||
nohup python3 -m jbot >$dir_log/bot/nohup.log 2>&1 &
|
ps -ef | grep "python3 -m jbot" | grep -v grep | awk '{print $1}' | xargs kill -9 2>/dev/null
|
||||||
|
nohup python3 -m jbot >$dir_log/bot/nohup.log 2>&1 &
|
||||||
|
else
|
||||||
|
cd $dir_root/jbot
|
||||||
|
pm2 start ecosystem.config.js
|
||||||
|
cd $dir_root
|
||||||
|
pm2 restart jbot
|
||||||
|
fi
|
||||||
echo -e "bot启动成功...\n"
|
echo -e "bot启动成功...\n"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user