Skip to main content

ready

Wait for a process to be ready.

Usage​

runix ready <id|name> [flags]

Description​

Blocks until the specified process is in a running state (and healthy, if health checks are configured). Useful in scripts to wait for startup dependencies.

Examples​

# Wait up to 60 seconds (default)
runix ready api

# Custom timeout
runix ready api --timeout 120s

# Use in scripts
runix start api && runix ready api && echo "API is ready"

Flags​

FlagDefaultDescription
--timeout60sMaximum time to wait

Behavior​

  1. Checks if the process exists and is in running or starting state
  2. Polls every 200ms until the process reaches running
  3. If a health check is configured, waits for the health check to pass
  4. Returns error if timeout is exceeded

Exit Codes​

CodeMeaning
0Process is ready
1Process not found, not running, or timeout exceeded