diff --git a/src/bin/bind10/bind10_src.py.in b/src/bin/bind10/bind10_src.py.in index 5a3f792b7d..ddc6b7dc05 100755 --- a/src/bin/bind10/bind10_src.py.in +++ b/src/bin/bind10/bind10_src.py.in @@ -466,7 +466,7 @@ class BoB: args.append("--data-path=" + self.data_path) if self.config_filename is not None: args.append("--config-filename=" + self.config_filename) - if self.clear_config is not None: + if self.clear_config: args.append("--clear-config") bind_cfgd = ProcessInfo("b10-cfgmgr", args, self.c_channel_env) @@ -1058,7 +1058,8 @@ def parse_args(args=sys.argv[1:], Parser=OptionParser): help="Configuration database filename") parser.add_option("--clear-config", action="store_true", dest="clear_config", default=False, - help="Back up the configuration file and start with a clean one") + help="Create backup of the configuration file and " + + "start with a clean configuration") parser.add_option("-p", "--data-path", dest="data_path", help="Directory to search for configuration files", default=None) diff --git a/src/bin/cfgmgr/tests/b10-cfgmgr_test.py.in b/src/bin/cfgmgr/tests/b10-cfgmgr_test.py.in index 141bf6e8e3..ca91c9c79f 100644 --- a/src/bin/cfgmgr/tests/b10-cfgmgr_test.py.in +++ b/src/bin/cfgmgr/tests/b10-cfgmgr_test.py.in @@ -24,7 +24,7 @@ import bind10_config from isc.testutils.parse_args import OptsError, TestOptParser class MyConfigManager: - def __init__(self, path, filename, session=None, rename_config_file=None): + def __init__(self, path, filename, session=None, rename_config_file=False): self._path = path self.read_config_called = False self.notify_boss_called = False diff --git a/src/lib/python/isc/config/cfgmgr_messages.mes b/src/lib/python/isc/config/cfgmgr_messages.mes index b307604dec..ad78be0be0 100644 --- a/src/lib/python/isc/config/cfgmgr_messages.mes +++ b/src/lib/python/isc/config/cfgmgr_messages.mes @@ -51,11 +51,11 @@ error is given. The most likely cause is that the system does not have write access to the configuration database file. The updated configuration is not stored. -% CFGMGR_STOPPED_BY_KEYBOARD keyboard interrupt, shutting down -There was a keyboard interrupt signal to stop the cfgmgr daemon. The -daemon will now shut down. - % CFGMGR_RENAMED_CONFIG_FILE renamed configuration file %1 to %2, will create new %1 BIND 10 has been started with the command to clear the configuration file. The existing file is backed up to the given file name, so that data is not immediately lost if this was done by accident. + +% CFGMGR_STOPPED_BY_KEYBOARD keyboard interrupt, shutting down +There was a keyboard interrupt signal to stop the cfgmgr daemon. The +daemon will now shut down.