Create a gist now

Instantly share code, notes, and snippets.

@ryenus /env.conf
Last active Aug 7, 2016

/etc/systemd/system/elasticsearch.service.d/env.conf
[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
@ryenus
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment