summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_node_health_check.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/reproducible_node_health_check.sh b/bin/reproducible_node_health_check.sh
index 98ee33f7..189bc984 100755
--- a/bin/reproducible_node_health_check.sh
+++ b/bin/reproducible_node_health_check.sh
@@ -126,6 +126,17 @@ if [ "$(lsb_release -si)" = "Ubuntu" ] ; then
fi
#
+# check for haveged running
+#
+echo "$(date -u) - testing 'haveged' is running..."
+HAVEGED="$(ps fax | grep '/usr/sbin/haveged' | grep -v grep || true)"
+if [ -z "$HAVEGED" ] ; then
+ echo "$(date -u) - haveged ain't running, giving up."
+ systemctl status haveged
+ exit 1
+fi
+
+#
# finally
#
if ! $DIRTY ; then