Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions service/elasticsearch
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ WAIT_FOR_STARTED_TIMEOUT=120
# port needs to be allocated prior to the user being changed.
#RUN_AS_USER=

# Specify the number of open files ulimit for the above user
# recommended value: 32000
#ULIMIT_N=

# By default we show a detailed usage block. Uncomment to show brief usage.
#BRIEF_USAGE=true

Expand Down Expand Up @@ -556,6 +560,12 @@ checkUser() {
shift
done

# Set ulimit if specified.
if [ "X$ULIMIT_N" != "X" ]
then
ulimit -n $ULIMIT_N
fi

# Use "runuser" if this exists. runuser should be used on RedHat in preference to su.
#
if test -f "/sbin/runuser"
Expand Down