diff --git a/tool/start.sh b/tool/start.sh index a272d730..05103f30 100755 --- a/tool/start.sh +++ b/tool/start.sh @@ -14,6 +14,11 @@ workdir=$(pwd) #------------------------------------------------------ source tool/include +# 页面展示的控制配置 +if [[ -f "${workdir}/function.json" ]] && [[ -z "${POLARIS_EXPORT_FUNCTION_FILE}" ]];then + export POLARIS_EXPORT_FUNCTION_FILE="${workdir}/function.json" +fi + pids=$(ps -ef | grep -w "$cmdline" | grep -v "grep" | awk '{print $2}') array=($pids) if [ "${#array[@]}" == "0" ]; then