容器启动时bot和自定义脚本改成后台运行

This commit is contained in:
hanhh 2021-07-08 23:11:00 +08:00
parent dd2d3127a0
commit 8336434d3f

View File

@ -36,12 +36,14 @@ echo -e "定时任务启动成功...\n"
if [[ $AutoStartBot == true ]]; then
echo -e "======================6. 启动bot========================\n"
ql bot
nohup ql bot >>$dir_log/start.log 2>&1 &
echo -e "bot后台启动中...\n"
fi
if [[ $EnableExtraShell == true ]]; then
echo -e "======================7. 执行自定义脚本========================\n"
ql extra
nohup ql extra >>$dir_log/start.log 2>&1 &
echo -e "自定义脚本后台执行中...\n"
fi
echo -e "############################################################\n"