Created
February 24, 2017 18:00
-
-
Save rbrto/cfc8c162ad4bac619eda3bb991ee94a6 to your computer and use it in GitHub Desktop.
ElasticSearch Systemd file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Developer : Anshul Patel | |
#Put the file in /etc/systemd/system | |
#Make sure that the elasticsearch and run directory have permission of appropriate user | |
#In order to start it during boot, sudo systemctl enable elasticsearch | |
[Unit] | |
Description=ElasticSearch Service | |
After=network.target | |
[Service] | |
ExecStart=/usr/local/bin/elasticsearch/bin/elasticsearch | |
PIDFile=/usr/local/bin/elasticsearch/run/elasticsearch.pid | |
User=elasticsearch | |
Type=simple | |
Restart=always | |
[Install] | |
WantedBy=default.target | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks. Worked like charm!