From 91da9af988a682b6c6a50668db7987fe76280c15 Mon Sep 17 00:00:00 2001 From: Ishan Chattopadhyaya Date: Wed, 29 Mar 2017 19:22:02 +0530 Subject: [PATCH] SOLR-10352: Fixing available entropy warning limit to 300 --- solr/bin/solr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/bin/solr b/solr/bin/solr index 27ec0542ab7..903309bc83e 100755 --- a/solr/bin/solr +++ b/solr/bin/solr @@ -1771,7 +1771,7 @@ function launch_solr() { 1>"$SOLR_LOGS_DIR/solr-$SOLR_PORT-console.log" 2>&1 & echo $! > "$SOLR_PID_DIR/solr-$SOLR_PORT.pid" # check if /proc/sys/kernel/random/entropy_avail exists then check output of cat /proc/sys/kernel/random/entropy_avail to see if less than 300 - if [[ -f /proc/sys/kernel/random/entropy_avail ]] && (( `cat /proc/sys/kernel/random/entropy_avail` < 30000)); then + if [[ -f /proc/sys/kernel/random/entropy_avail ]] && (( `cat /proc/sys/kernel/random/entropy_avail` < 300)); then echo "Warning: Available entropy is low. As a result, use of the UUIDField, SSL, or any other features that require" echo "RNG might not work properly. To check for the amount of available entropy, use 'cat /proc/sys/kernel/random/entropy_avail'." echo ""