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 committed 2010-03-03 01:06:25 +01:00
1 parent 107f9117d0
commit 6d5709de38
1 file changed
+8 -1
+8 -1
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);
}