From 299d1a14332a6b92581dc30a867b4340a35dad82 Mon Sep 17 00:00:00 2001 From: rafal-gorecki Date: Tue, 28 Nov 2023 12:14:52 +0100 Subject: [PATCH] Change health_status dir --- healthcheck.cpp | 2 +- healthcheck.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/healthcheck.cpp b/healthcheck.cpp index 1e032e3..ff80c35 100644 --- a/healthcheck.cpp +++ b/healthcheck.cpp @@ -10,7 +10,7 @@ using namespace std::chrono_literals; std::chrono::steady_clock::time_point last_msg_time; void write_health_status(const std::string &status) { - std::ofstream healthFile("/health_status.txt"); + std::ofstream healthFile("/var/tmp/health_status.txt"); healthFile << status; } diff --git a/healthcheck.sh b/healthcheck.sh index e25879f..7cae7a1 100755 --- a/healthcheck.sh +++ b/healthcheck.sh @@ -1,6 +1,6 @@ #!/bin/bash -HEALTHCHECK_FILE="/health_status.txt" +HEALTHCHECK_FILE="/var/tmp/health_status.txt" # Now check the health status