src/server/daemon/webserver.c

changeset 385
a1f4cb076d2f
parent 269
3dfbd0b91950
child 386
b91f8efadb63
--- a/src/server/daemon/webserver.c	Tue Aug 13 22:14:32 2019 +0200
+++ b/src/server/daemon/webserver.c	Sat Sep 24 16:26:10 2022 +0200
@@ -48,7 +48,7 @@
 #include "../util/io.h"
 #include "../util/util.h"
 
-#include "../../ucx/utils.h"
+#include <ucx/utils.h>
 
 #include "../safs/common.h"
 
@@ -60,6 +60,7 @@
 #include "log.h"
 #include "auth.h"
 #include "srvctrl.h"
+#include "resourcepool.h"
 
 extern struct FuncStruct webserver_funcs[];
 
@@ -78,6 +79,11 @@
     func_init();
     add_functions(webserver_funcs);
     
+    // init resource pools
+    if(init_resource_pools()) {
+        return -1;
+    }
+    
     // load init.conf
     if(load_init_conf("config/init.conf")) {
         return -1;
@@ -87,7 +93,6 @@
     init_configuration_manager();
     ServerConfiguration *cfg;
     if(cfgmgr_load_config(&cfg) != 0) {
-        fprintf(stderr, "Cannot load configuration\n");
         return -1;
     }
     

mercurial