def __init__(self, pidfile, stdin='/dev/null', stdout='/dev/null', stderr='/dev/null'): self.stdin = stdin self.stdout = stdout #self.stderr = stderr self.stderr = '/tmp/salving.err' self.pidfile = pidfile self.logger = salving_logger.logger('salving.log') self.processes_list = []
def run(self, id): self.logger = salving_logger.logger("salving_%d.log" % id) while True: self.logger.info(id) time.sleep(30) return None