common/config: add --mon-config option (opposite of --no-mon-config)

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2018-02-16 09:01:14 -06:00
parent 3c2b30e4c5
commit 2bc34bb882

View File

@ -562,6 +562,9 @@ int md_config_t::parse_argv(std::vector<const char*>& args, int level)
else if (ceph_argparse_flag(args, i, "--no-mon-config", (char*)NULL)) {
no_mon_config = true;
}
else if (ceph_argparse_flag(args, i, "--mon-config", (char*)NULL)) {
no_mon_config = false;
}
else if (ceph_argparse_flag(args, i, "--foreground", "-f", (char*)NULL)) {
set_val_or_die("daemonize", "false");
}