-
-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[Service] | ||
Environment=ES_HOME=<%= @ES_HOME %> | ||
Environment=CONF_DIR=<%= @CONF_DIR %> | ||
Environment=DATA_DIR=<%= @DATA_DIR %> | ||
Environment=LOG_DIR=<%= @LOG_DIR %> | ||
Environment=PID_DIR=<%= @PID_DIR %> | ||
EnvironmentFile=-/etc/default/elasticsearch | ||
|
||
WorkingDirectory=<%= @ES_HOME %> | ||
|
||
User=<%= @ES_USER %> | ||
Group=<%= @ES_GROUP %> | ||
|
||
# Specifies the maximum file descriptor number that can be opened by this process | ||
LimitNOFILE=<%= @MAX_OPEN_FILES %> | ||
|
||
# Specifies the maximum number of bytes of memory that may be locked into RAM | ||
# Set to "infinity" if you use the 'bootstrap.mlockall: true' option | ||
# in elasticsearch.yml and 'MAX_LOCKED_MEMORY=unlimited' in /etc/default/elasticsearch | ||
LimitMEMLOCK=<%= @MAX_LOCKED_MEMORY %> | ||
|