|
@@ -168,7 +168,7 @@ class BoB:
|
|
"""Boss of BIND class."""
|
|
"""Boss of BIND class."""
|
|
|
|
|
|
def __init__(self, msgq_socket_file=None, data_path=None,
|
|
def __init__(self, msgq_socket_file=None, data_path=None,
|
|
- config_filename=None, clear_config=False, nocache=False,
|
|
|
|
|
|
+ config_filename=None, clear_config=False,
|
|
verbose=False, nokill=False, setuid=None, setgid=None,
|
|
verbose=False, nokill=False, setuid=None, setgid=None,
|
|
username=None, cmdctl_port=None, wait_time=10):
|
|
username=None, cmdctl_port=None, wait_time=10):
|
|
"""
|
|
"""
|
|
@@ -192,7 +192,6 @@ class BoB:
|
|
self.ccs = None
|
|
self.ccs = None
|
|
self.curproc = None
|
|
self.curproc = None
|
|
self.msgq_socket_file = msgq_socket_file
|
|
self.msgq_socket_file = msgq_socket_file
|
|
- self.nocache = nocache
|
|
|
|
self.component_config = {}
|
|
self.component_config = {}
|
|
# Some time in future, it may happen that a single component has
|
|
# Some time in future, it may happen that a single component has
|
|
# multple processes (like a pipeline-like component). If so happens,
|
|
# multple processes (like a pipeline-like component). If so happens,
|
|
@@ -568,8 +567,6 @@ class BoB:
|
|
if self.uid is not None and self.__started:
|
|
if self.uid is not None and self.__started:
|
|
logger.warn(BIND10_START_AS_NON_ROOT_AUTH)
|
|
logger.warn(BIND10_START_AS_NON_ROOT_AUTH)
|
|
authargs = ['b10-auth']
|
|
authargs = ['b10-auth']
|
|
- if self.nocache:
|
|
|
|
- authargs += ['-n']
|
|
|
|
if self.verbose:
|
|
if self.verbose:
|
|
authargs += ['-v']
|
|
authargs += ['-v']
|
|
|
|
|
|
@@ -1052,8 +1049,6 @@ def parse_args(args=sys.argv[1:], Parser=OptionParser):
|
|
parser.add_option("-m", "--msgq-socket-file", dest="msgq_socket_file",
|
|
parser.add_option("-m", "--msgq-socket-file", dest="msgq_socket_file",
|
|
type="string", default=None,
|
|
type="string", default=None,
|
|
help="UNIX domain socket file the b10-msgq daemon will use")
|
|
help="UNIX domain socket file the b10-msgq daemon will use")
|
|
- parser.add_option("-n", "--no-cache", action="store_true", dest="nocache",
|
|
|
|
- default=False, help="disable hot-spot cache in authoritative DNS server")
|
|
|
|
parser.add_option("-i", "--no-kill", action="store_true", dest="nokill",
|
|
parser.add_option("-i", "--no-kill", action="store_true", dest="nokill",
|
|
default=False, help="do not send SIGTERM and SIGKILL signals to modules during shutdown")
|
|
default=False, help="do not send SIGTERM and SIGKILL signals to modules during shutdown")
|
|
parser.add_option("-u", "--user", dest="user", type="string", default=None,
|
|
parser.add_option("-u", "--user", dest="user", type="string", default=None,
|
|
@@ -1208,7 +1203,7 @@ def main():
|
|
# Go bob!
|
|
# Go bob!
|
|
boss_of_bind = BoB(options.msgq_socket_file, options.data_path,
|
|
boss_of_bind = BoB(options.msgq_socket_file, options.data_path,
|
|
options.config_file, options.clear_config,
|
|
options.config_file, options.clear_config,
|
|
- options.nocache, options.verbose, options.nokill,
|
|
|
|
|
|
+ options.verbose, options.nokill,
|
|
setuid, setgid, username, options.cmdctl_port,
|
|
setuid, setgid, username, options.cmdctl_port,
|
|
options.wait_time)
|
|
options.wait_time)
|
|
startup_result = boss_of_bind.startup()
|
|
startup_result = boss_of_bind.startup()
|