提交 38585ea4 编写于 作者: J Jiangtao Hu 提交者: Liangliang Zhang

script: wait for dreamview and monitor to start in bootstrap.

上级 665f765f
......@@ -29,18 +29,23 @@ function start() {
if [ "$HOSTNAME" == "in_release_docker" ]; then
supervisord -c /apollo/modules/tools/supervisord/release.conf >& /tmp/supervisord.start.log
echo "Started supervisord with release conf"
supervisorctl start monitor > /dev/null
supervisorctl start dreamview > /dev/null
else
supervisord -c /apollo/modules/tools/supervisord/dev.conf >& /tmp/supervisord.start.log
echo "Started supervisord with dev conf"
bash scripts/dreamview.sh
fi
supervisorctl start monitor > /dev/null 2>&1 &
supervisorctl start dreamview > /dev/null 2>&1 &
echo "Dreamview is running at http://localhost:8888"
}
function stop() {
supervisorctl stop monitor > /dev/null 2>&1 &
supervisorctl stop dreamview > /dev/null 2>&1 &
if [ "$HOSTNAME" == "in_release_docker" ]; then
supervisorctl stop monitor > /dev/null 2>&1 &
supervisorctl stop dreamview > /dev/null 2>&1 &
else
bash scripts/dreamview.sh stop
fi
pkill -f roscore
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册