pub fn serve(
options: ServeOptions,
on_bound: impl FnOnce(ShutdownHandle) -> Result<(), Error>,
log: &mut impl Write,
) -> Result<(), Error>Expand description
Runs the archive service in the foreground until it is asked to stop.
on_bound receives the stop handle once the control listener is bound,
before overlay startup and any chain sync, and installs whatever stop
signal the host has (process signals, or the Windows service manager).