提交 06ca7279 编写于 作者: A Aaron Xiao 提交者: Jiangtao Hu

Scripts: Simple workaround for dreamview start/stop.

上级 cec44fc2
......@@ -23,6 +23,32 @@ cd "${DIR}/.."
source "${DIR}/apollo_base.sh"
# run function from apollo_base.sh
# run command_name module_name
run dreamview "$@"
function start_fe() {
/apollo/bazel-bin/modules/dreamview/dreamview \
--flagfile=/apollo/modules/common/data/global_flagfile.txt
}
function start() {
LOG="${APOLLO_ROOT_DIR}/data/log/dreamview.out"
nohup /apollo/bazel-bin/modules/dreamview/dreamview \
--flagfile=/apollo/modules/common/data/global_flagfile.txt > ${LOG} 2>&1 &
}
function stop() {
killall -9 /apollo/bazel-bin/modules/dreamview/dreamview
}
case $1 in
start_fe)
start_fe
;;
start)
start
;;
stop)
stop
;;
*)
start
;;
esac
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册