From 344bbf2ced93155c1a3a88324378409ecd8a5be0 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Fri, 5 Dec 2014 11:14:13 +0100 Subject: [PATCH] Docs: Add instructions to start elasticsearch on bootup on RHEL/Fedora. --- docs/reference/setup/repositories.asciidoc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/reference/setup/repositories.asciidoc b/docs/reference/setup/repositories.asciidoc index 3b56dff6e1f..43d908659a4 100644 --- a/docs/reference/setup/repositories.asciidoc +++ b/docs/reference/setup/repositories.asciidoc @@ -66,3 +66,19 @@ And your repository is ready for use. You can install it with : -------------------------------------------------- yum install elasticsearch -------------------------------------------------- + +Configure Elasticsearch to automatically start during bootup. If your +distribution is using SysV, then you will need to run : + +[source,sh] +-------------------------------------------------- +chkconfig --add elasticsearch +-------------------------------------------------- + +Otherwise if your distribution is using systemd : + +[source,sh] +-------------------------------------------------- +sudo /bin/systemctl daemon-reload +sudo /bin/systemctl enable elasticsearch.service +--------------------------------------------------