'If a daemon has a lock on the database, return info to connect to IPC.'

def check_ipc_info(self):

    lock_info = self._read_lock()
    if (lock_info and (u'port' in lock_info)):
        return lock_info
    return None
