From d777836d5b899ed76250105f391485ce828362d7 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 21 Jun 2017 13:42:15 +0200 Subject: reproducible Debian: add check for haveged running Signed-off-by: Holger Levsen --- bin/reproducible_node_health_check.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bin') 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 @@ -125,6 +125,17 @@ if [ "$(lsb_release -si)" = "Ubuntu" ] ; then fi 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 # -- cgit v1.2.3-70-g09d2