mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-05 07:56:50 +08:00
1
This commit is contained in:
@@ -52,16 +52,14 @@ func (p *procApi) StartProcess(ctx *gin.Context, req model.ProcessUuidReq) (err
|
||||
return err1
|
||||
}
|
||||
logic.ProcessCtlLogic.AddProcess(req.Uuid, proc)
|
||||
rOk(ctx, "Operation successful!", nil)
|
||||
return nil
|
||||
}
|
||||
}
|
||||
if prod.State.State == 1 {
|
||||
return errors.New("process is currently running")
|
||||
}
|
||||
prod.ResetRestartTimes()
|
||||
err = prod.Start()
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
func (p *procApi) StartAllProcess(ctx *gin.Context, _ any) (err error) {
|
||||
|
Reference in New Issue
Block a user