X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Fmain.c;h=a72585e28377a1157bcae85459bc73176b14d8d3;hb=fce6239dd648aa20070c96b43a49a04e97dff96f;hp=20722a58f0cd60d8362de62499c9420f589ad2cd;hpb=0b3b92cdf87f4b8ddeae69a651c24891112171aa;p=netdata.git diff --git a/src/main.c b/src/main.c index 20722a58..a72585e2 100644 --- a/src/main.c +++ b/src/main.c @@ -366,7 +366,10 @@ static void backwards_compatible_config() { web_server_mode = (mode)?WEB_SERVER_MODE_MULTI_THREADED:WEB_SERVER_MODE_SINGLE_THREADED; } - // move [global] options to the [api] section + // move [global] options to the [web] section + config_move(CONFIG_SECTION_GLOBAL, "http port listen backlog", + CONFIG_SECTION_WEB, "listen backlog"); + config_move(CONFIG_SECTION_GLOBAL, "bind socket to IP", CONFIG_SECTION_WEB, "bind to"); @@ -412,7 +415,7 @@ static void get_netdata_configured_variables() { char buf[HOSTNAME_MAX + 1]; if(gethostname(buf, HOSTNAME_MAX) == -1) - error("WARNING: Cannot get machine hostname."); + error("Cannot get machine hostname."); netdata_configured_hostname = config_get(CONFIG_SECTION_GLOBAL, "hostname", buf); debug(D_OPTIONS, "hostname set to '%s'", netdata_configured_hostname);