Files
go-worm/lib/instance/ensure.go
T

10 lines
176 B
Go
Raw Normal View History

package instance
// EnsureRunning starts a detached agent if none is holding the mutex.
func EnsureRunning() error {
if AlreadyRunning() {
return nil
}
return Detach()
}