diff --git a/src/daemon/sysdbd.c b/src/daemon/sysdbd.c
index f1992610f2a2164af9d189c8f1324ea6a3265daf..98d3d26ce52cce93050a49ceb6be053ba202ae91 100644 (file)
--- a/src/daemon/sysdbd.c
+++ b/src/daemon/sysdbd.c
_Bool do_daemonize = 0;
struct sigaction sa_intterm;
_Bool do_daemonize = 0;
struct sigaction sa_intterm;
+ int status;
while (42) {
int opt = getopt(argc, argv, "C:dhV");
while (42) {
int opt = getopt(argc, argv, "C:dhV");
if (! config_filename)
config_filename = CONFIGFILE;
if (! config_filename)
config_filename = CONFIGFILE;
- if (daemon_parse_config(config_filename)) {
- sdb_log(SDB_LOG_ERR, "Failed to parse configuration file.");
+ if ((status = daemon_parse_config(config_filename))) {
+ if (status > 0)
+ sdb_log(SDB_LOG_ERR, "Failed to parse configuration file.");
+ else
+ sdb_log(SDB_LOG_ERR, "Failed to load configuration file.\n"
+ "\tCheck other error messages for details.");
exit(1);
}
exit(1);
}