matrixorigin / mo_ctl_standalone

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

[Feature Request]: implement function 'restart' #21

Closed aronchanisme closed 1 year ago

aronchanisme commented 1 year ago

Is there an existing issue for the feature request?

Feature Description

Usage         : mo_ctl restart [force] # a combination operation of stop and start
 [force]      : optional, if specified, will try to kill mo-services with -9 option, so be very carefully
  e.g.        : mo_ctl restart         # default, stop all mo-service processes found on this machine and start mo-serivce under path of conf MO_PATH
              : mo_ctl restart force   # stop all mo-services with kill -9 command and start mo-serivce under path of conf MO_PATH

Feature Implementation

  1. mo_ctl stop
  2. sleep ${RESTART_INTERVAL}
  3. mo_ctl start

Additional information

none

aronchanisme commented 1 year ago

feature implemented