TSG-23842 请tfe提供健康状态查询的HTTP服务
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user