diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-06-21 13:42:15 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-06-21 13:42:15 +0200 |
commit | d777836d5b899ed76250105f391485ce828362d7 (patch) | |
tree | 6fb5b1bb25f904edddcb19b68fcac3fcce36697f | |
parent | 8d291771d4a6a1ec5899900811c28bab91d226fb (diff) | |
download | jenkins.debian.net-d777836d5b899ed76250105f391485ce828362d7.tar.xz |
reproducible Debian: add check for haveged running
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/reproducible_node_health_check.sh | 11 |
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 |