Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

move and clarify ulimit check

  • Loading branch information...
commit 1ccd31719b5ef788359f4b1c1ff6fe96c957e019 1 parent 3bbaba9
@evanmcc evanmcc authored
Showing with 11 additions and 8 deletions.
  1. +11 −8 rel/files/riak
View
19 rel/files/riak
@@ -40,14 +40,6 @@ if ([ "$RUNNER_USER" ] && [ "x$WHOAMI" != "x$RUNNER_USER" ]); then
exec sudo -H -u $RUNNER_USER -i $RUNNER_SCRIPT_DIR/$RUNNER_SCRIPT $@
fi
-# Warn the user if ulimit -n is less than 4096
-ULIMIT_F=`ulimit -n`
-if [ "$ULIMIT_F" -lt 4096 ]; then
- echo "!!!!"
- echo "!!!! WARNING: ulimit -n is ${ULIMIT_F}; 4096 is the recommended minimum."
- echo "!!!!"
-fi
-
# Make sure CWD is set to runner base dir
cd $RUNNER_BASE_DIR
@@ -139,6 +131,17 @@ case "$1" in
echo $RES
exit 1
fi
+
+ # Warn the user if ulimit -n is less than 4096
+ ULIMIT_F=`ulimit -n`
+ if [ "$ULIMIT_F" -lt 4096 ]; then
+ echo "!!!!"
+ echo "!!!! WARNING: shell ulimit -n is ${ULIMIT_F}; 4096 is the recommended minimum."
+ echo "!!!! riak user or erlang ulimit may differ, please check"
+ echo "!!!! console.log for more detailed file limit information."
+ echo "!!!!"
+ fi
+
HEART_COMMAND="$RUNNER_SCRIPT_DIR/$SCRIPT start"
export HEART_COMMAND
mkdir -p $PIPE_DIR

1 comment on commit 1ccd317

@jj1bdx

+1. Friendlier code to the sysadmin.

Please sign in to comment.
Something went wrong with that request. Please try again.