import childProcess from 'child_process' const actors = [ 'api', 'email', 'image' ] // TODO: spawn index.js in each of these sub-directories // TODO: If any child exits, wait for a back-off period and then restart // TODO: Gradually increase back-off period if process fails again too quickly