Hi,
I just install Elasticsearch with tar file...
there is a link that define how to add systemd to run Elasticsearch for this installation method....
Thanks
Hi,
I just install Elasticsearch with tar file...
there is a link that define how to add systemd to run Elasticsearch for this installation method....
Thanks
Hi @aviad.co1 ,
#vi /usr/lib/systemd/system/elasticsearch.service
[Unit]
Description=Elasticsearch
Wants=network-online.target
After=network-online.target
[Service]
Environment=ES_HOME=/appdata/elasticsearch
Environment=CONF_DIR=/appdata/elasticsearch/config
Environment=DATA_DIR=/appdata/elasticsearch/data
Environment=LOG_DIR=/appdata/elasticsearch/logs
Environment=PID_DIR=/var/run/elasticsearch
EnvironmentFile=-/appdata/elasticsearch/config
WorkingDirectory=/appdata/elasticsearch
User=appuser
Group=appgroup
ExecStart=/appdata/elasticsearch/bin/elasticsearch \
-p ${PID_DIR}/elasticsearch.pid \
--quiet
# StandardOutput is configured to redirect to journalctl since
# some error messages may be logged in standard output before
# elasticsearch logging system is initialized. Elasticsearch
# stores its logs in /var/log/elasticsearch and does not use
# journalctl by default. If you also want to enable journalctl
# logging, you can simply remove the "quiet" option from ExecStart.
StandardOutput=journal
StandardError=inherit
# Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE=65536
# Specifies the maximum number of bytes of memory that may be locked into RAM
# Set to "infinity" if you use the 'bootstrap.memory_lock: true' option
# in elasticsearch.yml and 'MAX_LOCKED_MEMORY=unlimited' in /etc/sysconfig/elasticsearch
LimitMEMLOCK=infinity
# Disable timeout logic and wait until process is stopped
TimeoutStopSec=0
# SIGTERM signal is used to stop the Java process
KillSignal=SIGTERM
# Java process is never killed
SendSIGKILL=no
# When a JVM receives a SIGTERM signal it exits with code 143
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
# Built for distribution-5.4.0 (distribution)
Hi,
thank's..
just this I dont know what should to config :
Environment=PID_DIR=/var/run/Elasticsearch
Thank's , AVIAD
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.