matrixorigin / mo_ctl_standalone

mo_ctl tool for standalone matrixone
Apache License 2.0
2 stars 1 forks source link

[Feature Request]: Implement function 'start' #19

Closed aronchanisme closed 1 year ago

aronchanisme commented 1 year ago

Is there an existing issue for the feature request?

Feature Description

mo_ctl start will conduct actions,

  1. if no mo-service is running: start mo-service from path MO_PATH configured
  2. if any mo-servie is running: returns info on which mo-service(s) is/are running, and won't start mo-service from path MO_PATH configured

Feature Implementation

  1. mo_ctl status to check if there's any mo-service running
  2. If yes , return current process info and exit 0
  3. If no, start mo-service: cd ${MO_PATH}/matrixone/ && ${MO_PATH}/matrixone/mo-service -daemon -debug-http :${MO_DEBUG_PORT} -launch ${MO_CONF_FILE} >${MO_LOG_PATH}/stdout-${RUN_TAG}.log 2>${MO_LOG_PATH}/stderr-${RUN_TAG}.log

Additional information

none

aronchanisme commented 1 year ago

feature implemented