diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-18 13:03:53 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-22 01:00:20 +0200 |
commit | eb304fda7a26091ffc2a4dd6392b65f06d387149 (patch) | |
tree | e30934e71cee8227945359dc03b2d34186fe4636 /src/main.c | |
parent | 5b9054a89f2be6b0d47eaba8fc7cd5e923a9d35a (diff) |
localhost is now dynamic
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c index 61e2fa39d2..28cd5cbdd4 100644 --- a/src/main.c +++ b/src/main.c @@ -23,6 +23,7 @@ void netdata_cleanup_and_exit(int ret) { //kill_childs(); // free database + sleep(2); rrdhost_free_all(); #endif @@ -578,11 +579,11 @@ int main(int argc, char **argv) { char *user = NULL; { - char *flags = config_get("global", "debug flags", "0x00000000"); + char *flags = config_get("global", "debug flags", "0x0000000000000000"); setenv("NETDATA_DEBUG_FLAGS", flags, 1); debug_flags = strtoull(flags, NULL, 0); - debug(D_OPTIONS, "Debug flags set to '0x%8llx'.", debug_flags); + debug(D_OPTIONS, "Debug flags set to '0x%" PRIX64 "'.", debug_flags); if(debug_flags != 0) { struct rlimit rl = { RLIM_INFINITY, RLIM_INFINITY }; @@ -795,14 +796,14 @@ int main(int argc, char **argv) { } // ------------------------------------------------------------------------ - // initialize rrd host + // initialize the registry - rrdhost_init(hostname); + registry_init(); // ------------------------------------------------------------------------ - // initialize the registry + // initialize rrd host - registry_init(); + rrd_init(hostname); // ------------------------------------------------------------------------ // initialize health monitoring |