From 80806b4cc2c37bda9a9ff7257c61f8cb90dd82fb Mon Sep 17 00:00:00 2001 From: Guy Davis Date: Thu, 7 Mar 2024 11:03:22 -0700 Subject: [PATCH] User wants to test chia-exporter from Gigahorse. --- scripts/forks/gigahorse_launch.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/forks/gigahorse_launch.sh b/scripts/forks/gigahorse_launch.sh index 13fe7b39..98460cdc 100644 --- a/scripts/forks/gigahorse_launch.sh +++ b/scripts/forks/gigahorse_launch.sh @@ -101,6 +101,10 @@ if [[ ${mode} =~ ^fullnode.* ]]; then echo "Starting Gigahorse recompute_server shortly..." sleep 20 && /chia-gigahorse-farmer/chia_recompute_server 2>&1 > /root/.chia/mainnet/log/recompute.log & fi + if [[ ${chia_exporter} == "true" ]]; then + echo "Starting Chia Exporter service for Prometheus reporting..." + sleep 20 && /usr/local/bin/chia-exporter serve 2>&1 > /root/.chia/mainnet/log/chia-exporter.log & + fi elif [[ ${mode} =~ ^farmer.* ]]; then /chia-gigahorse-farmer/chia.bin start farmer-only elif [[ ${mode} =~ ^harvester.* ]]; then @@ -133,6 +137,10 @@ elif [[ ${mode} =~ ^harvester.* ]]; then echo "Starting Gigahorse recompute_server shortly..." sleep 20 && /chia-gigahorse-farmer/chia_recompute_server 2>&1 > /root/.chia/mainnet/log/recompute.log & fi + if [[ ${chia_exporter} == "true" ]]; then + echo "Starting Chia Exporter service for Prometheus reporting..." + sleep 20 && /usr/local/bin/chia-exporter serve 2>&1 > /root/.chia/mainnet/log/chia-exporter.log & + fi fi elif [[ ${mode} == 'plotter' ]]; then echo "Starting in Plotter-only mode. Run Plotman from either CLI or WebUI."