summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mozes <hydrapolic@gmail.com>2017-04-28 11:22:38 +0200
committerMichał Górny <mgorny@gentoo.org>2017-05-07 13:24:33 +0200
commit777af3f9e13d400dace299f64ccbf51ae5d54ee6 (patch)
tree01d5fc645f647bd8a7b30adcab23bdbfc6a0d43b /www-apps/kibana-bin/files
parentprofiles: mask app-cdr/backlite for removal (diff)
downloadgentoo-777af3f9e13d400dace299f64ccbf51ae5d54ee6.tar.gz
gentoo-777af3f9e13d400dace299f64ccbf51ae5d54ee6.tar.bz2
gentoo-777af3f9e13d400dace299f64ccbf51ae5d54ee6.zip
www-apps/kibana-bin: bump to 5.3.2
Closes: https://github.com/gentoo/gentoo/pull/4515 Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'www-apps/kibana-bin/files')
-rw-r--r--www-apps/kibana-bin/files/kibana.initd-r523
1 files changed, 23 insertions, 0 deletions
diff --git a/www-apps/kibana-bin/files/kibana.initd-r5 b/www-apps/kibana-bin/files/kibana.initd-r5
new file mode 100644
index 000000000000..84f38e9aeefa
--- /dev/null
+++ b/www-apps/kibana-bin/files/kibana.initd-r5
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+KIBANA_USER="${KIBANA_USER:-kibana}"
+KIBANA_CONFIG="${KIBANA_CONFIG:-/etc/kibana/kibana.yml}"
+KIBANA_CACHE_DIR="${KIBANA_CACHE_DIR:-/var/cache/kibana}"
+KIBANA_BABEL_CACHE_PATH="${KIBANA_CACHE_DIR}/.babelcache.json"
+KIBANA_DATA_DIR="${KIBANA_DATA_DIR:-/var/lib/kibana}"
+KIBANA_LOG_DIR="${KIBANA_LOG_DIR:-/var/log/kibana}"
+
+command="/opt/kibana/bin/kibana"
+command_args="--elasticsearch ${ES_INSTANCE} --config ${KIBANA_CONFIG} --path.data=${KIBANA_DATA_DIR}"
+
+pidfile="/run/kibana.pid"
+command_background="true"
+start_stop_daemon_args="--user=\"${KIBANA_USER}\" --stdout ${KIBANA_LOG_DIR}/kibana.log --stderr ${KIBANA_LOG_DIR}/kibana.err --env BABEL_CACHE_PATH=${KIBANA_BABEL_CACHE_PATH}"
+
+start_pre() {
+ checkpath -d -o "${KIBANA_USER}" -m750 "${KIBANA_CACHE_DIR}"
+ checkpath -d -o "${KIBANA_USER}" -m750 "${KIBANA_DATA_DIR}"
+ checkpath -d -o "${KIBANA_USER}" -m750 "${KIBANA_LOG_DIR}"
+}