diff options
author | 2015-03-20 08:55:27 +0000 | |
---|---|---|
committer | 2015-03-20 08:55:27 +0000 | |
commit | 29465016e72b9b8132955088077acf7b6fada09e (patch) | |
tree | 4bf4abd87f3fa27e550ad956a4a51131f1d3684d /www-apps/kibana-bin/files | |
parent | bump; add ~arm64 based on addition to 2.5.2 by dlan (diff) | |
download | gentoo-2-29465016e72b9b8132955088077acf7b6fada09e.tar.gz gentoo-2-29465016e72b9b8132955088077acf7b6fada09e.tar.bz2 gentoo-2-29465016e72b9b8132955088077acf7b6fada09e.zip |
binary package for the purpose of bringing ELK to Gentoo; written by T. Mozes and runtested in a production env.
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'www-apps/kibana-bin/files')
-rw-r--r-- | www-apps/kibana-bin/files/kibana.initd | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/www-apps/kibana-bin/files/kibana.initd b/www-apps/kibana-bin/files/kibana.initd new file mode 100644 index 000000000000..6de46c58c579 --- /dev/null +++ b/www-apps/kibana-bin/files/kibana.initd @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/kibana-bin/files/kibana.initd,v 1.1 2015/03/20 08:55:27 idella4 Exp $ + +command="/opt/kibana/bin/kibana" +pidfile="/run/kibana.pid" +KIBANA_USER=${KIBANA_USER:="kibana"} + +depend() { + need elasticsearch +} + +start() { + ebegin "Starting ${SVCNAME}" + + checkpath -d -o "${KIBANA_USER}" -m750 "/var/log/kibana" + + start-stop-daemon --start \ + --user $KIBANA_USER \ + --background \ + --make-pidfile \ + --pidfile $pidfile \ + --stdout /var/log/kibana/kibana.log \ + --stderr /var/log/kibana/kibana.err \ + --exec $command + + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + + start-stop-daemon --stop \ + --pidfile $pidfile + + + eend $? +} |