mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-12-20 01:11:03 +08:00
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
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user