#!/bin/sh # Healthy = the server answers its own RPC. That happens once it has caught up # with the daemon and started serving, which is what callers care about: an # ElectrumX still building its index accepts no Electrum sessions at all. # # The RPC lives on localhost:8000 by default (SERVICES). Overriding SERVICES # without an rpc:// entry leaves nothing to ask — see README, "Notes". set -eu exec gosu electrumx electrumx_rpc getinfo > /dev/null