#!/bin/bash
# the fake cluster's srun: the step runs in place, without its options, in its own process group and hearing TERM,
# as slurmstepd starts it
while [[ $1 == --* ]]; do shift; done
exec setsid env --default-signal=TERM "$@"
