Skip to content

Commit

Permalink
Change health_status dir
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Nov 28, 2023
1 parent 459f945 commit d6d417a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion healthcheck/healthcheck.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

HEALTHCHECK_FILE="/health_status.txt"
HEALTHCHECK_FILE="/var/tmp/health_status.txt"

# Now check the health status
if [ -f "$HEALTHCHECK_FILE" ]; then
Expand Down
2 changes: 1 addition & 1 deletion healthcheck/healthcheck_localization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using namespace std::chrono_literals;

void write_health_status(const std::string &status) {
std::ofstream healthFile("/health_status.txt");
std::ofstream healthFile("/var/tmp/health_status.txt");
healthFile << status;
}

Expand Down
2 changes: 1 addition & 1 deletion healthcheck/healthcheck_navigation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using namespace std::chrono_literals;

void write_health_status(const std::string &status) {
std::ofstream healthFile("/health_status.txt");
std::ofstream healthFile("/var/tmp/health_status.txt");
healthFile << status;
}

Expand Down
2 changes: 1 addition & 1 deletion healthcheck/healthcheck_slam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class HealthCheckNode : public rclcpp::Node {
std::chrono::steady_clock::time_point last_saved_map_time;

void writeHealthStatus(const std::string &status) {
std::ofstream healthFile("/health_status.txt");
std::ofstream healthFile("/var/tmp/health_status.txt");
healthFile << status;
}

Expand Down

0 comments on commit d6d417a

Please sign in to comment.