Merge pull request #16159 from jasontedor/systemd-standard-output

Default standard output to the journal in systemd

Relates #15315, relates #16134
This commit is contained in:
Jason Tedor 2016-01-22 06:13:07 -05:00
commit 917a57659a
2 changed files with 13 additions and 5 deletions

View File

@ -26,11 +26,8 @@ ExecStart=/usr/share/elasticsearch/bin/elasticsearch \
-Des.default.path.data=${DATA_DIR} \ -Des.default.path.data=${DATA_DIR} \
-Des.default.path.conf=${CONF_DIR} -Des.default.path.conf=${CONF_DIR}
# Connects standard output to /dev/null StandardOutput=journal
StandardOutput=null StandardError=inherit
# Connects standard error to journal
StandardError=journal
# Specifies the maximum file descriptor number that can be opened by this process # Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE=65535 LimitNOFILE=65535

View File

@ -644,3 +644,14 @@ When percolating an existing document then specifying a document in the source o
any more. any more.
Percolator documents are no longer excluded from the search response. Percolator documents are no longer excluded from the search response.
=== Default logging using systemd
In previous versions of Elasticsearch, the default logging
configuration routed standard output to /dev/null and standard error to
the journal. However, there are often critical error messages at
startup that are logged to standard output rather than standard error
and these error messages would be lost to the nether. The default has
changed to now route standard output to the journal and standard error
to inherit this setting (these are the defaults for systemd). These
settings can be modified by editing the elasticsearch.service file.