Add support for specifying env vars and long-running procs