From 73eed5988a31725cef7a221d901b8538a17dfbec Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Thu, 20 May 2021 14:06:40 -0700 Subject: [PATCH] Added several new commands. --- build | 2 +- src/uCentral.cpp | 13 ++++--------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/build b/build index eebd1d10..b2412e34 100644 --- a/build +++ b/build @@ -1 +1 @@ -61 \ No newline at end of file +62 \ No newline at end of file diff --git a/src/uCentral.cpp b/src/uCentral.cpp index f019677c..fd8e9dfb 100644 --- a/src/uCentral.cpp +++ b/src/uCentral.cpp @@ -295,11 +295,6 @@ namespace uCentral { Poco::Logger &logger = Poco::Logger::get("uCentral"); logger.notice(Poco::format("Starting uCentral version %s.",Version())); - if (config().getBool("application.runAsDaemon", false)) - { - logger.information("Starting as a daemon."); - } - uCentral::Storage::Start(); uCentral::Auth::Start(); uCentral::DeviceRegistry::Start(); @@ -317,10 +312,10 @@ namespace uCentral { else logger.information("System does NOT support IPv6."); - std::string T{"2021-05-18T21:31:39.000Z"}; - - uint64_t TT = uCentral::Utils::from_RFC3339(T); - //std::cout << "Time:" << TT << " now " << time(nullptr) << std::endl; + if (config().getBool("application.runAsDaemon", false)) + { + logger.information("Starting as a daemon."); + } instance()->waitForTerminationRequest();