Пример #1
0
	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 = []
Пример #2
0
 def run(self, id):
     self.logger = salving_logger.logger("salving_%d.log" % id)
     while True:
         self.logger.info(id)
         time.sleep(30)
     return None