Document that Debian 8 and Ubuntu 14 systemd

Fix #13865
This commit is contained in:
Kevin Kirsche 2015-10-07 12:41:39 -04:00 committed by Kevin Kirsche
parent 072f6ae138
commit 7150e1d17a
1 changed files with 4 additions and 2 deletions

View File

@ -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 <<using-systemd>> 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]
--------------------------------------------------