public
Last active

/etc/systemd/system/elasticsearch.service.d/env.conf

  • Download Gist
env.conf
1 2 3 4
[Service]
Environment=PATH=/opt/java/bin:/usr/local/sbin:/usr/local/bin:/usr/bin
Environment=ES_HOME=/usr/share/elasticsearch
Environment=ES_INCLUDE=/usr/share/elasticsearch/bin/elasticsearch.in.sh

To start elasticsearch as a systemd service in Arch Linux, save this file as:

/etc/systemd/system/elasticsearch.service.d/env.conf

Then enable and start the service via:

sudo systemctl enable elasticsearch.service
sudo systemctl start elasticsearch.service

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.