#!/bin/sh # Healthy = the RPC answers. Not "the chain is synced": an initial block # download takes days on mainnet, and a container that reports unhealthy for all # of it would be restarted by every orchestrator that watches health. # # The credentials come from cli.conf, written by run.sh, so they stay out of the # process list -- unlike the daemon's own arguments, which cannot avoid them. set -eu exec gosu bitcoin bitcoin-cli \ -datadir="${BITCOIN_DATA:-/data/.bitcoin}" \ -conf="${BITCOIN_DATA:-/data/.bitcoin}/cli.conf" \ getblockchaininfo > /dev/null