pub async fn run_command(
spec: &ProcessSpec,
ctx: Option<CtxInfo>,
limits: Limits,
stop: Stops,
spawned: impl FnOnce(i32),
) -> Result<Ran, LaunchError>Expand description
Runs a command process under supervision, keeping the tails of its output; spawned gets
its process ID as soon as it runs. With ctx, the process (and every process it starts)
gets a context channel (SCHEDR_CTX_FD, see crate::ctx), served until it ends.
§Errors
LaunchError if it can’t be started or supervised.