From 7150e1d17a4455dc3d5f05994594c4a693df62ad Mon Sep 17 00:00:00 2001 From: Kevin Kirsche Date: Wed, 7 Oct 2015 12:41:39 -0400 Subject: [PATCH] Document that Debian 8 and Ubuntu 14 systemd Fix #13865 --- docs/reference/setup/as-a-service.asciidoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/reference/setup/as-a-service.asciidoc b/docs/reference/setup/as-a-service.asciidoc index 50454ca9a13..1bd6d9bb7ae 100644 --- a/docs/reference/setup/as-a-service.asciidoc +++ b/docs/reference/setup/as-a-service.asciidoc @@ -39,6 +39,8 @@ sudo update-rc.d elasticsearch defaults 95 10 sudo /etc/init.d/elasticsearch start -------------------------------------------------- +Users running Debian 8 or Ubuntu 14 or later may require configuration of systemd instead of `update-rc.d`. In those cases, please refer to the <> section. + [float] ===== Installing the oracle JDK @@ -69,11 +71,11 @@ sudo /sbin/chkconfig --add elasticsearch sudo service elasticsearch start -------------------------------------------------- - +[[using-systemd]] [float] ==== Using systemd -Distributions like SUSE do not use the `chkconfig` tool to register services, but rather `systemd` and its command `/bin/systemctl` to start and stop services (at least in newer versions, otherwise use the `chkconfig` commands above). The configuration file is also placed at `/etc/sysconfig/elasticsearch` if the system is rpm based and `/etc/default/elasticsearch` if it is deb. After installing the RPM, you have to change the systemd configuration and then start up elasticsearch +Distributions like Debian Jessie, Ubuntu 14, and many of the SUSE derivitives do not use the `chkconfig` tool to register services, but rather `systemd` and its command `/bin/systemctl` to start and stop services (at least in newer versions, otherwise use the `chkconfig` commands above). The configuration file is also placed at `/etc/sysconfig/elasticsearch` if the system is rpm based and `/etc/default/elasticsearch` if it is deb. After installing the RPM, you have to change the systemd configuration and then start up elasticsearch [source,sh] --------------------------------------------------