ossvc: imp docs
Some checks are pending
build / test (macOS-latest) (push) Waiting to run
build / test (ubuntu-latest) (push) Waiting to run
build / test (windows-latest) (push) Waiting to run
build / build-release (push) Blocked by required conditions
build / notify (push) Blocked by required conditions
lint / go-lint (push) Waiting to run
lint / eslint (push) Waiting to run
lint / notify (push) Blocked by required conditions

This commit is contained in:
Eugene Burkov
2025-12-19 18:57:39 +03:00
parent 926719b6fb
commit e67ed4ccb8

View File

@@ -92,6 +92,11 @@ func (m *manager) Status(ctx context.Context, name ServiceName) (status Status,
var code int
code, err = m.runInitdCommand(ctx, string(name), "status")
if err != nil || code != 0 {
// Treat an error or non-zero exit code as stopped status on Unix
// System V.
//
// TODO(e.burkov): Investigate if it's a valid assumption, and
// properly handle errors in similar cases.
return StatusStopped, nil
}