[svn] commit: r1957 - /trunk/src/bin/bind10/bind10.py.in

BIND 10 source code commits bind10-changes at lists.isc.org
Fri May 28 02:39:12 UTC 2010


Author: zhanglikun
Date: Fri May 28 02:39:12 2010
New Revision: 1957

Log:
Pass bind10 verbose option to module xfrin, xfrout and cmdctl(Has been reviewed by jeremy)

Modified:
    trunk/src/bin/bind10/bind10.py.in

Modified: trunk/src/bin/bind10/bind10.py.in
==============================================================================
--- trunk/src/bin/bind10/bind10.py.in (original)
+++ trunk/src/bin/bind10/bind10.py.in Fri May 28 02:39:12 2010
@@ -286,10 +286,12 @@
 
         # start the xfrout before auth-server, to make sure every xfr-query can be
         # processed properly.
+        xfrout_args = ['b10-xfrout']
         if self.verbose:
             sys.stdout.write("Starting b10-xfrout\n")
-        try:
-            xfrout = ProcessInfo("b10-xfrout", ["b10-xfrout"], 
+            xfrout_args += ['-v']
+        try:
+            xfrout = ProcessInfo("b10-xfrout", xfrout_args, 
                                  { 'ISC_MSGQ_PORT': str(self.c_channel_port)})
         except Exception as e:
             c_channel.process.kill()
@@ -319,10 +321,12 @@
             sys.stdout.write("Started b10-auth (PID %d)\n" % auth.pid)
 
         # start b10-xfrin
+        xfrin_args = ['b10-xfrin']
         if self.verbose:
             sys.stdout.write("Starting b10-xfrin\n")
-        try:
-            xfrind = ProcessInfo("b10-xfrin", ['b10-xfrin'],
+            xfrin_args += ['-v']
+        try:
+            xfrind = ProcessInfo("b10-xfrin", xfrin_args,
                                  { 'ISC_MSGQ_PORT': str(self.c_channel_port)})
         except Exception as e:
             c_channel.process.kill()
@@ -336,10 +340,12 @@
 
         # start the b10-cmdctl
         # XXX: we hardcode port 8080
+        cmdctl_args = ['b10-cmdctl']
         if self.verbose:
             sys.stdout.write("Starting b10-cmdctl on port 8080\n")
-        try:
-            cmd_ctrld = ProcessInfo("b10-cmdctl", ['b10-cmdctl'],
+            cmdctl_args += ['-v']
+        try:
+            cmd_ctrld = ProcessInfo("b10-cmdctl", cmdctl_args,
                                     { 'ISC_MSGQ_PORT': str(self.c_channel_port)})
         except Exception as e:
             c_channel.process.kill()




More information about the bind10-changes mailing list