summaryrefslogtreecommitdiff
path: root/src/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/server.c b/src/server.c
index d4f9eba..5a29a75 100644
--- a/src/server.c
+++ b/src/server.c
@@ -861,22 +861,29 @@ int main (int argc, char **argv) {
}
}
}
-
+
+ if (srv->config_unsupported) {
+ log_error_write(srv, __FILE__, __LINE__, "s",
+ "Configuration contains unsupported keys. Going down.");
+ }
+
if (srv->config_deprecated) {
log_error_write(srv, __FILE__, __LINE__, "s",
"Configuration contains deprecated keys. Going down.");
-
+ }
+
+ if (srv->config_unsupported || srv->config_deprecated) {
plugins_free(srv);
network_close(srv);
server_free(srv);
-
+
return -1;
}
-
+
if (-1 == log_error_open(srv)) {
log_error_write(srv, __FILE__, __LINE__, "s",
"opening errorlog failed, dying");
-
+
plugins_free(srv);
network_close(srv);
server_free(srv);