瀏覽代碼

debug watch

stanley-king 7 年之前
父節點
當前提交
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):