def _start_processes(self, commands):
Log.info("<STR_LIT>")<EOL>processes_to_monitor = {}<EOL>for (name, command) in list(commands.items()):<EOL><INDENT>p = self._run_process(name, command)<EOL>processes_to_monitor[p.pid] = ProcessInfo(p, name, command)<EOL>log_pid_for_process(name, p.pid)<EOL><DEDENT>with self.process_lock:<EOL><INDENT>self.processes_to_monitor.update(processes_to_monitor)<EOL><DEDENT>
Start all commands and add them to the dict of processes to be monitored