diff --git a/server/rpc.go b/server/rpc.go index 973a549fb..ba747e95b 100644 --- a/server/rpc.go +++ b/server/rpc.go @@ -184,6 +184,10 @@ func (s *RPC) Update(c context.Context, id string, state rpc.State) error { proc.State = model.StatusRunning } + if proc.Started == 0 && proc.Stopped != 0 { + proc.Started = build.Started + } + if err := s.store.ProcUpdate(proc); err != nil { log.Printf("error: rpc.update: cannot update proc: %s", err) }