src/server/daemon/webserver.c

changeset 440
d77b8f3e14e2
parent 438
22eca559aded
child 443
ef3c8a0e1fee
equal deleted inserted replaced
439:255e316db762 440:d77b8f3e14e2
282 re = re->next; 282 re = re->next;
283 } 283 }
284 } 284 }
285 285
286 int webserver_reconfig() { 286 int webserver_reconfig() {
287 if(cfgmgr_load_config(NULL) != 0) { 287 CfgManager mgr;
288 return -1; 288 if(cfgmgr_load_config(&mgr) != 0) {
289 } 289 log_ereport(LOG_FAILURE, "cannot reload server.conf");
290 return 1;
291 } else {
292 if(cfgmgr_apply_config(&mgr)) {
293 log_ereport(LOG_FAILURE, "cannot reload config");
294 return 1;
295 }
296 }
297
290 // start newly created listeners 298 // start newly created listeners
291 start_all_listener(); 299 start_all_listener();
292 300
293 return 0; 301 return 0;
294 } 302 }

mercurial