'Get info about a process named name
@param string name The name of the process (or \'group:name\')
@return struct result     A structure containing data about the process'

def getProcessInfo(self, name):

    self._update('getProcessInfo')
    (group, process) = self._getGroupAndProcess(name)
    if (process is None):
        raise RPCError(Faults.BAD_NAME, name)
    start = capped_int(process.laststart)
    stop = capped_int(process.laststop)
    now = capped_int(self._now())
    state = process.get_state()
    spawnerr = (process.spawnerr or '')
    exitstatus = (process.exitstatus or 0)
    stdout_logfile = (process.config.stdout_logfile or '')
    stderr_logfile = (process.config.stderr_logfile or '')
    info = {'name': process.config.name, 'group': group.config.name, 'start': start, 'stop': stop, 'now': now, 'state': state, 'statename': getProcessStateDescription(state), 'spawnerr': spawnerr, 'exitstatus': exitstatus, 'logfile': stdout_logfile, 'stdout_logfile': stdout_logfile, 'stderr_logfile': stderr_logfile, 'pid': process.pid}
    description = self._interpretProcessInfo(info)
    info['description'] = description
    return info
