Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initscript for kibana 4 #1595

Closed
TiNico22 opened this issue Oct 8, 2014 · 15 comments
Closed

initscript for kibana 4 #1595

TiNico22 opened this issue Oct 8, 2014 · 15 comments

Comments

@TiNico22
Copy link

TiNico22 commented Oct 8, 2014

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

@rashidkpc
Copy link
Contributor

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.

@panophobicPanda
Copy link

I've written a debian one https://github.com/akabdog/scripts/blob/master/kibana4_init

@bradisbell
Copy link

@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.

@AlexB030
Copy link

AlexB030 commented Mar 1, 2015

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

@edgarmartinez922
Copy link

I've written a Centos one
https://github.com/Xaway/script/blob/master/init_kibana

Cheers,

@mumblerit
Copy link

@xAway Works thanks

@kennyg
Copy link

kennyg commented Apr 20, 2015

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

@keith4
Copy link

keith4 commented May 11, 2015

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

@wolfgangkarall
Copy link

@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 panophobicPanda/scripts#5

@cottonbeckfield
Copy link

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

@adaam
Copy link

adaam commented Jan 4, 2016

@cjcotton The script working well at CentOS 6.3

@bennierex
Copy link

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

@abraxxa
Copy link

abraxxa commented Jan 5, 2016

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

@rraghu214
Copy link

@cjcotton By chance this works fine with RHEL 5.5?

@Sudhan2612
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests