From cf4ace105c55e55596cad7ea8660302a2dd2699c Mon Sep 17 00:00:00 2001 From: quzard <1191890118@qq.com> Date: Thu, 19 Dec 2024 04:29:37 +0000 Subject: [PATCH] rm pid --- core/app_config/AppConfig.cpp | 7 ------- core/app_config/AppConfig.h | 1 - 2 files changed, 8 deletions(-) diff --git a/core/app_config/AppConfig.cpp b/core/app_config/AppConfig.cpp index fcfac92dd9..9a9c00d611 100644 --- a/core/app_config/AppConfig.cpp +++ b/core/app_config/AppConfig.cpp @@ -508,13 +508,6 @@ std::string GetSymLinkName() { return GetProcessExecutionDir() + "loongcollector"; } -std::vector GetPidFileNames() { - std::vector pidFileNames; - pidFileNames.push_back(GetProcessExecutionDir() + ILOGTAIL_PREFIX + ILOGTAIL_VERSION + ILOGTAIL_PIDFILE_SUFFIX); - pidFileNames.push_back(GetProcessExecutionDir() + "loongcollector.pid"); - return pidFileNames; -} - std::string GetAgentPrefix() { return LOONGCOLLECTOR_PREFIX; } diff --git a/core/app_config/AppConfig.h b/core/app_config/AppConfig.h index 2f7b2cfe9b..609c4379f6 100644 --- a/core/app_config/AppConfig.h +++ b/core/app_config/AppConfig.h @@ -60,7 +60,6 @@ std::string GetGoPluginCheckpoint(); std::string GetAgentName(); std::string GetMonitorInfoFileName(); std::string GetSymLinkName(); -std::vector GetPidFileNames(); std::string GetAgentPrefix(); template