summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-11-20 14:53:45 +0800
committerluwenpeng <[email protected]>2024-11-20 15:43:32 +0800
commit6a21dd88483e15eb511b94f2acebf0b16d6bd733 (patch)
treee74e4d7752cb240d3ac90cff866e9e1b98b53f5f /platform
parentff436e3f26b93d3c6a71b650ca917643fc5e4d54 (diff)
TSG-23842 请tfe提供健康状态查询的HTTP服务v4.11.2-20241120
Diffstat (limited to 'platform')
-rw-r--r--platform/src/proxy.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/src/proxy.cpp b/platform/src/proxy.cpp
index b8d89c9..45d6a1d 100644
--- a/platform/src/proxy.cpp
+++ b/platform/src/proxy.cpp
@@ -54,6 +54,7 @@
#include <key_keeper.h>
#include <watchdog_3rd_device.h>
#include <timestamp.h>
+#include <http_healthcheck.h>
/* Breakpad */
#include <MESA/breakpad_mini.h>
@@ -717,6 +718,8 @@ int main(int argc, char * argv[])
TFE_LOG_ERROR(g_default_logger, "Tango Frontend Engine initialized, Version: %s.", __tfe_version);
+ http_healthcheck_server_start(main_profile);
+
/* If TFE is run by systemd's notify, then tell the systemd our tfe is ready.
* and disable the stderr log, only print logs into files */
if(check_is_started_by_notify())
@@ -729,6 +732,9 @@ int main(int argc, char * argv[])
worker_thread_ready = 1;
event_base_dispatch(g_default_proxy->evbase);
+
+ http_healthcheck_server_stop();
+
return 0;
}