stanley-king 7 лет назад
Родитель
Сommit
23d5753ad5
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      qwatch.py

+ 5 - 5
qwatch.py

@@ -61,7 +61,7 @@ def sig_handler(sig,frame):
 
 class Daemon(object):
 	def __init__(self,stdin='/dev/null',stdout='/dev/null',stderr='/dev/null'):
-		self.stdin = stdin
+		self.stdin  = stdin
 	 	self.stdout = stdout
 	 	self.stderr = stderr
 
@@ -110,16 +110,16 @@ def main():
 
 	queue_procs = list()
 
-	d = Daemon()
-	d.daemonize()
-	d.register_handler()
+	# d = Daemon()
+	# d.daemonize()
+	# d.register_handler()
 
 	print "cur_pid =" , os.getpid()
 
 	if mac_sys() :
 		cmds = ["php", "./crontab.php", "queue", "index"]
 	else:
-		cmds = ["php", "./crontab.php", "queue", "index"]
+		cmds = ["/usr/local/php/bin/php", "./crontab.php", "queue", "index"]
 
 	while(shutdown == False):
 		for i in range(0,10):