|
@@ -272,41 +272,42 @@ class BoB:
|
|
|
if self.verbose:
|
|
|
sys.stdout.write("[bind10] ccsession started\n")
|
|
|
|
|
|
- # 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("[bind10] Starting b10-xfrout\n")
|
|
|
- xfrout_args += ['-v']
|
|
|
- try:
|
|
|
- xfrout = ProcessInfo("b10-xfrout", xfrout_args,
|
|
|
- c_channel_env )
|
|
|
- except Exception as e:
|
|
|
- c_channel.process.kill()
|
|
|
- bind_cfgd.process.kill()
|
|
|
- return "Unable to start b10-xfrout; " + str(e)
|
|
|
- self.processes[xfrout.pid] = xfrout
|
|
|
- if self.verbose:
|
|
|
- sys.stdout.write("[bind10] Started b10-xfrout (PID %d)\n" % xfrout.pid)
|
|
|
-
|
|
|
- # start b10-auth
|
|
|
- # XXX: this must be read from the configuration manager in the future
|
|
|
- authargs = ['b10-auth', '-p', str(self.auth_port)]
|
|
|
- if self.verbose:
|
|
|
- sys.stdout.write("[bind10] Starting b10-auth using port %d\n" %
|
|
|
- self.auth_port)
|
|
|
- authargs += ['-v']
|
|
|
- try:
|
|
|
- auth = ProcessInfo("b10-auth", authargs,
|
|
|
- c_channel_env)
|
|
|
- except Exception as e:
|
|
|
- c_channel.process.kill()
|
|
|
- bind_cfgd.process.kill()
|
|
|
- xfrout.process.kill()
|
|
|
- return "Unable to start b10-auth; " + str(e)
|
|
|
- self.processes[auth.pid] = auth
|
|
|
- if self.verbose:
|
|
|
- sys.stdout.write("[bind10] Started b10-auth (PID %d)\n" % auth.pid)
|
|
|
+## TODO: UNCOMMENT (commented out, doing json for python first)
|
|
|
+# # 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("[bind10] Starting b10-xfrout\n")
|
|
|
+# xfrout_args += ['-v']
|
|
|
+# try:
|
|
|
+# xfrout = ProcessInfo("b10-xfrout", xfrout_args,
|
|
|
+# c_channel_env )
|
|
|
+# except Exception as e:
|
|
|
+# c_channel.process.kill()
|
|
|
+# bind_cfgd.process.kill()
|
|
|
+# return "Unable to start b10-xfrout; " + str(e)
|
|
|
+# self.processes[xfrout.pid] = xfrout
|
|
|
+# if self.verbose:
|
|
|
+# sys.stdout.write("[bind10] Started b10-xfrout (PID %d)\n" % xfrout.pid)
|
|
|
+#
|
|
|
+# # start b10-auth
|
|
|
+# # XXX: this must be read from the configuration manager in the future
|
|
|
+# authargs = ['b10-auth', '-p', str(self.auth_port)]
|
|
|
+# if self.verbose:
|
|
|
+# sys.stdout.write("[bind10] Starting b10-auth using port %d\n" %
|
|
|
+# self.auth_port)
|
|
|
+# authargs += ['-v']
|
|
|
+# try:
|
|
|
+# auth = ProcessInfo("b10-auth", authargs,
|
|
|
+# c_channel_env)
|
|
|
+# except Exception as e:
|
|
|
+# c_channel.process.kill()
|
|
|
+# bind_cfgd.process.kill()
|
|
|
+# xfrout.process.kill()
|
|
|
+# return "Unable to start b10-auth; " + str(e)
|
|
|
+# self.processes[auth.pid] = auth
|
|
|
+# if self.verbose:
|
|
|
+# sys.stdout.write("[bind10] Started b10-auth (PID %d)\n" % auth.pid)
|
|
|
|
|
|
# start b10-xfrin
|
|
|
xfrin_args = ['b10-xfrin']
|