[][src]Function sc_cli::run_service_until_exit

pub fn run_service_until_exit<T, F>(
    config: Configuration,
    service_builder: F
) -> Result<()> where
    F: FnOnce(Configuration) -> Result<T, Error>,
    T: AbstractService + Unpin

A helper function that runs an AbstractService with tokio and stops if the process receives the signal SIGTERM or SIGINT