'Called when process initializes.'

def run(self):

    logger.info('started    roomba')
    while 1:
        now = time()
        try:
            self.redis_conn.ping()
        except:
            logger.error(("roomba    can't    connect    to    redis    at    socket    path    %s" % settings.REDIS_SOCKET_PATH))
            sleep(10)
            self.redis_conn = StrictRedis(unix_socket_path=settings.REDIS_SOCKET_PATH)
            continue
        pids = []
        for i in range(1, (settings.ROOMBA_PROCESSES + 1)):
            if (not self.skip_mini):
                p = Process(target=self.vacuum, args=(i, settings.MINI_NAMESPACE, (settings.MINI_DURATION + settings.ROOMBA_GRACE_TIME)))
                pids.append(p)
                p.start()
            p = Process(target=self.vacuum, args=(i, settings.FULL_NAMESPACE, (settings.FULL_DURATION + settings.ROOMBA_GRACE_TIME)))
            pids.append(p)
            p.start()
        for p in pids:
            p.join()
