设备监控-回写

This commit is contained in:
flower_linux
2026-03-20 17:19:29 +08:00
parent 903c349e1d
commit 51fa0bb51b
27 changed files with 402 additions and 19 deletions

View File

@@ -10,6 +10,11 @@
void signalHandler(int signal)
{
LOG_INFO() << "Received signal:" << signal;
CoreService* coreService = CoreService::instance();
if (coreService) {
coreService->shutdown();
}
QCoreApplication::quit();
}
@@ -68,7 +73,7 @@ int main(int argc, char *argv[])
LOG_ERROR() << "CoreService initialize failed";
return 1;
}
QObject::connect(&app, &QCoreApplication::aboutToQuit, coreService, &CoreService::shutdown);
// QObject::connect(&app, &QCoreApplication::aboutToQuit, coreService, &CoreService::shutdown);
// ========================================================================
// 创建并注册 D-Bus 服务(仅在 CoreRouter 角色中启用)