Skip to main content

run_supervisor

Function run_supervisor 

Source
pub async fn run_supervisor(
    config: SupervisorConfig,
    shutdown_rx: Receiver<bool>,
) -> Result<(), Report>
Expand description

Runs the zcashd-compat zcashd supervisor until shutdown.

The supervisor keeps restarting zcashd exits that happen before Zebra shutdown, using capped exponential backoff. Spawn failures use the same backoff, so a binary that is briefly missing or unspawnable (for example during an upgrade, or under transient resource pressure) does not permanently end supervision.

ยงErrors

Returns an error if shutdown handling fails.