Open BillXiang opened 3 months ago
client/cmd/exec/restart.go
func restart(m *model.Process, flags string) ([]string, error) { // only stopped process or failed process allow run start if m.Status == model.StatusStopped || m.Status == model.StatusFailed { newData, err := reloadProcess(m, flags) if err != nil { return nil, err } return newData, nil } return nil, fmt.Errorf("the process already start") }
client/cmd/exec/restart.go