diff --git a/runtime/runtime.go b/runtime/runtime.go index 4dfe5d27..ce1b03f3 100644 --- a/runtime/runtime.go +++ b/runtime/runtime.go @@ -17,6 +17,8 @@ var ( // Runtime is a service runtime manager type Runtime interface { + // String describes runtime + String() string // Init initializes runtime Init(...Option) error // Create registers a service diff --git a/runtime/service.go b/runtime/service.go index ea42dc9e..45f70470 100644 --- a/runtime/service.go +++ b/runtime/service.go @@ -170,6 +170,8 @@ func (s *service) Wait() { s.Metadata["status"] = "error" s.Metadata["error"] = err.Error() s.err = err + } else { + s.Metadata["status"] = "done" } // no longer running