Files
go-worm/lib/instance/ensure.go
T
kato 36cb847f9e feat(agent): add crash logs and watchdog startup
- Recover panics to disk for diagnostics
- Add 5-minute watchdog task with startup
- Add -ensure flag to start detached agent
- Add script to pull remote folder via API
2026-09-01 20:04:20 +03:00

10 lines
176 B
Go

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