diff -r 80ee93a7d257 -r 0aef555055ee src/server/daemon/webserver.c --- a/src/server/daemon/webserver.c Sun Sep 25 11:00:38 2022 +0200 +++ b/src/server/daemon/webserver.c Sun Sep 25 11:56:47 2022 +0200 @@ -69,8 +69,11 @@ // init NSPR systhread_init("webserver"); + log_ereport(LOG_VERBOSE, "webserver_init"); + // init ssl if(ws_init_ssl()) { + log_ereport(LOG_FAILURE, "ssl init failed"); return -1; } @@ -82,6 +85,7 @@ // init resource pools if(init_resource_pools()) { + log_ereport(LOG_FAILURE, "resource pool init failed"); return -1; } @@ -99,6 +103,7 @@ if(cfgmgr_load_config(&mgr) != 0) { return -1; } + log_ereport(LOG_VERBOSE, "cfgmgr_load_config stage 1 successful"); ServerConfiguration *cfg = mgr.cfg; // init caches @@ -175,6 +180,7 @@ // now that the process is running as the correct user, we can load // the remaining config if(cfgmgr_apply_config(&mgr)) { + log_ereport(LOG_FAILURE, "load config stage 2 failed"); return -1; } @@ -204,7 +210,7 @@ "cannot change permissions of tmp dir %s:", tmp_priv.ptr, strerror(errno)); - return 0; + return -1; } } else { log_ereport(