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
8 changes: 7 additions & 1 deletion service/elasticsearch
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ WAIT_FOR_STARTED_TIMEOUT=120

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

# By default we show a detailed usage block. Uncomment to show brief usage.
#BRIEF_USAGE=true
Expand Down Expand Up @@ -916,6 +916,12 @@ start() {
then
prepAdditionalParams "$@"

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

# The string passed to eval must handles spaces in paths correctly.
COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.pidfile=\"$PIDFILE\" wrapper.name=\"$APP_NAME\" wrapper.displayname=\"$APP_LONG_NAME\" wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $STATUSPROP $COMMANDPROP $LOCKPROP wrapper.script.version=3.5.14 $ADDITIONAL_PARA"
eval $COMMAND_LINE
Expand Down