Kibana: initscript for kibana 4

Created on 8 Oct 2014  路  15Comments  路  Source: elastic/kibana

As kibana is not a web page anymore but an application, he should have an initscript
(can help on this if you want)

Most helpful comment

As Debian 8 uses systemd a service unit is all that's needed.

/lib/systemd/system/kibana.service:

[Unit]
Description=Kibana

After=syslog.target
After=network.target

[Service]
User=foo # only if not binding to a port <= 1024
Restart=always

ExecStart=/opt/kibana-4.3.1-linux-x64/bin/kibana

[Install]
WantedBy=multi-user.target

All 15 comments

We do not plan to include an init script in the repository. Init scripts would be better off dynamically generated with something like pleaserun: https://github.com/jordansissel/pleaserun

When we go to publish packages we'll generate the init scripts as part of the build process.

@rashidkpc Installation of yet another dependency (and one that seemingly must be installed via gem which introduces other dependencies) just for an init script seems like overkill for me. Just my 2 cents.

@akabdog Your init script works perfectly. Thank you very much for creating it.

@akabdog Thanks for your script... works great so far

@Xaway Works thanks

@Xaway thanks for the script. works for me on RHEL6.

The debian init script above runs kibana as root, which is almost certainly not what you want.

@keith4 Indeed. A small change to the two start-stop-daemon line is all that is needed to run the service as user nobody.

See https://github.com/akabdog/scripts/pull/5

This is a Kibana4 script for RHEL6 (or CentOS) that runs it as a non-root user:
https://github.com/cjcotton/init-kibana

@cjcotton The script working well at CentOS 6.3

Created a version for Ubuntu (/Debian):
https://github.com/CAVOK-IT/kibana-init-scripts

As Debian 8 uses systemd a service unit is all that's needed.

/lib/systemd/system/kibana.service:

[Unit]
Description=Kibana

After=syslog.target
After=network.target

[Service]
User=foo # only if not binding to a port <= 1024
Restart=always

ExecStart=/opt/kibana-4.3.1-linux-x64/bin/kibana

[Install]
WantedBy=multi-user.target

@cjcotton By chance this works fine with RHEL 5.5?

I have tried to execute the kibana as background service through initialization script for RHEL https://github.com/cjcotton/init-kibana.

I was able to the message that service is started through /etc/init.d.

But service is not actually starting in background.

I am using kibana 4.1.1 version
OS: RHEL
Elastic search :1.7.5

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LukeMathWalker picture LukeMathWalker  路  3Comments

timmolter picture timmolter  路  3Comments

cafuego picture cafuego  路  3Comments

tbragin picture tbragin  路  3Comments

Ginja picture Ginja  路  3Comments