main: separate loading of config and setup_logging at startup

This is the first part of a fix for bug #74
(making reloading of config work if running as non-privileged user)

Michael
This commit is contained in:
Michael Adam 2010-03-02 21:57:03 +01:00
parent 107f9117d0
commit 6d5709de38

View File

@ -367,7 +367,14 @@ main (int argc, char **argv)
log_message (LOG_INFO, "Initializing " PACKAGE " ...");
ret = reload_config ();
ret = reload_config_file (config_defaults.config_file,
&config,
&config_defaults);
if (ret != 0) {
exit (EX_SOFTWARE);
}
ret = setup_logging ();
if (ret != 0) {
exit (EX_SOFTWARE);
}