conf->parse_argv(args); // argv override
- // Expand metavariables. Invoke configuration observers.
- conf->apply_changes(NULL);
-
// Now we're ready to complain about config file parse errors
complain_about_parse_errors(cct, &parse_errors);
}
dout(0) << "set uid:gid to " << uid << ":" << gid << dendl;
}
+ // Expand metavariables. Invoke configuration observers. Open log file.
+ g_conf->apply_changes(NULL);
+
if (g_conf->run_dir.length() &&
code_env == CODE_ENVIRONMENT_DAEMON &&
!(flags & CINIT_FLAG_NO_DAEMON_ACTIONS)) {
global_pre_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_DAEMON,
CINIT_FLAG_NO_DAEMON_ACTIONS);
+ g_conf->apply_changes(NULL);
// do not common_init_finish(); do not start threads; do not do any of thing
// wonky things the daemon whose conf we are examining would do (like initialize