Run elasticsearch as a service 2.3.0


(Alex) #1

Hi, I'm just trying to run elasticsearch 2.3.0 as a service on a linux machine[Xubuntu 16.04], using systemd. I installed elasticsearch manually, I downloaded elasticsearch-2.3.0.zip and unziped into my machine and ran it form /bin/elasticsearch.sh.

The problem comes when I want to let the systemd run and manage the elasticsearch process.
So far, I found a file called elasticsearch.service, I modified the file according to my installation path and run:

sudo systemctl daemon-reload
sudo systemctl enable elasticsearch.service

But get this message:

elasticsearch.service is not a native service, redirecting to systemd-sysv-install

What is the procedure to run as a service if elasticsearch is installed manually? By manually I mean I didn't use any .rpm or .deb or any other package.


(Harsh Bajaj) #2

set START_DAEMON=true in /etc/default/elasticsearch. It is commented out by default.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.