Skip to content

Instantly share code, notes, and snippets.

@ryenus
Last active April 12, 2018 19:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ryenus/5849422 to your computer and use it in GitHub Desktop.
Save ryenus/5849422 to your computer and use it in GitHub Desktop.
/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
Copy link
Author

ryenus commented Jun 24, 2013

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