Use reload_config() in main() to load config and init logging.
Michael
This commit is contained in:
1 parent
bc10479452
commit
71a035d619
1 file changed
+1
-7
+1
-7
@@ -360,13 +360,7 @@ main (int argc, char **argv)
|
||||
|
||||
log_message (LOG_INFO, "Initializing " PACKAGE " ...");
|
||||
|
||||
ret = reload_config_file(config_defaults.config_file, &config,
|
||||
&config_defaults);
|
||||
if (ret != 0) {
|
||||
exit (EX_SOFTWARE);
|
||||
}
|
||||
|
||||
ret = setup_logging ();
|
||||
ret = reload_config ();
|
||||
if (ret != 0) {
|
||||
exit (EX_SOFTWARE);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user