DIY墨盒是否支持在每个档位运行2个进程?如果我有 2 个齿轮运行,是否意味着它将同时运行 4 个进程?
开始
chmod +x ${OPENSHIFT_REPO_DIR}run/start
APP_COMMAND_1="${OPENSHIFT_REPO_DIR}run/start $PLAY_PARAMS "\
"-Dhttp.port=${OPENSHIFT_DIY_PORT} "\
"-Dhttp.address=${OPENSHIFT_DIY_IP} "\
"-Dlogger.resource=${LOGGER_RESOURCE} "\
"-Dconfig.resource=application-prod.conf"
echo $APP_COMMAND_1 &>> $LOG_FILE
nohup bash -c "${APP_COMMAND_1} &>> ${LOG_FILE} 2>&1" &> /dev/null &
APP_COMMAND_2="${OPENSHIFT_REPO_DIR}run/start $PLAY_PARAMS "\
"-Dhttp.port=${OPENSHIFT_DIY_PORT} "\
"-Dhttp.address=${OPENSHIFT_DIY_IP} "\
"-Dlogger.resource=${LOGGER_RESOURCE} "\
"-Dconfig.resource=application-prod.conf "\
"-Dapplication.global=Scheduler"
echo $APP_COMMAND_2 &>> $LOG_FILE
nohup bash -c "${APP_COMMAND_2} &>> ${LOG_FILE} 2>&1" &> /dev/null &