mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
				synced 2025-11-03 20:27:45 +00:00 
			
		
		
		
	Added several new commands.
This commit is contained in:
		@@ -295,11 +295,6 @@ namespace uCentral {
 | 
				
			|||||||
            Poco::Logger &logger = Poco::Logger::get("uCentral");
 | 
					            Poco::Logger &logger = Poco::Logger::get("uCentral");
 | 
				
			||||||
			logger.notice(Poco::format("Starting uCentral version %s.",Version()));
 | 
								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::Storage::Start();
 | 
				
			||||||
            uCentral::Auth::Start();
 | 
					            uCentral::Auth::Start();
 | 
				
			||||||
            uCentral::DeviceRegistry::Start();
 | 
					            uCentral::DeviceRegistry::Start();
 | 
				
			||||||
@@ -317,10 +312,10 @@ namespace uCentral {
 | 
				
			|||||||
			else
 | 
								else
 | 
				
			||||||
				logger.information("System does NOT support IPv6.");
 | 
									logger.information("System does NOT support IPv6.");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			std::string T{"2021-05-18T21:31:39.000Z"};
 | 
								if (config().getBool("application.runAsDaemon", false))
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
			uint64_t TT = uCentral::Utils::from_RFC3339(T);
 | 
									logger.information("Starting as a daemon.");
 | 
				
			||||||
			//std::cout << "Time:" << TT << " now " << time(nullptr) << std::endl;
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			instance()->waitForTerminationRequest();
 | 
								instance()->waitForTerminationRequest();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user