Skip to main content

Module health

Module health 

Source
Expand description

Health check subcommand implementation.

Validates config, API keys and API reachability.

Exit codes follow BSD conventions:

  • 0 success (all checks passed)
  • 66 no API keys configured (EX_NOINPUT)
  • 69 API service unreachable (EX_UNAVAILABLE)
  • 74 configuration corrupt or unreadable (EX_IOERR)

Structs§

HealthReport
Consolidated result of the health checks.

Functions§

run_health
Runs the health checks and returns the appropriate BSD exit code.