diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apps/kibana-bin/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apps/kibana-bin/files')
-rw-r--r-- | www-apps/kibana-bin/files/kibana.confd | 2 | ||||
-rw-r--r-- | www-apps/kibana-bin/files/kibana.initd | 23 | ||||
-rw-r--r-- | www-apps/kibana-bin/files/kibana.logrotate | 9 |
3 files changed, 34 insertions, 0 deletions
diff --git a/www-apps/kibana-bin/files/kibana.confd b/www-apps/kibana-bin/files/kibana.confd new file mode 100644 index 000000000000..59877f3b656c --- /dev/null +++ b/www-apps/kibana-bin/files/kibana.confd @@ -0,0 +1,2 @@ +#elasticsearch instance to connect to +ES_INSTANCE=http://localhost:9200 diff --git a/www-apps/kibana-bin/files/kibana.initd b/www-apps/kibana-bin/files/kibana.initd new file mode 100644 index 000000000000..84f38e9aeefa --- /dev/null +++ b/www-apps/kibana-bin/files/kibana.initd @@ -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}" +} diff --git a/www-apps/kibana-bin/files/kibana.logrotate b/www-apps/kibana-bin/files/kibana.logrotate new file mode 100644 index 000000000000..378d65668b59 --- /dev/null +++ b/www-apps/kibana-bin/files/kibana.logrotate @@ -0,0 +1,9 @@ +/var/log/kibana/kibana.log /var/log/kibana/kibana.err { + daily + rotate 7 + copytruncate + compress + delaycompress + missingok + notifempty +} |