blob: 85ec76f9c72e728e761d88d9773136fdb62ef186 [file] [log] [blame]
#!/sbin/openrc-run
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
KIBANA_USER=${KIBANA_USER:-kibana}
command="/opt/kibana/bin/kibana"
command_args="--elasticsearch ${ES_INSTANCE}"
pidfile="/run/kibana.pid"
command_background="true"
start_stop_daemon_args="--user=\"${KIBANA_USER}\" --stdout /var/log/kibana/kibana.log --stderr /var/log/kibana/kibana.err"
start_pre() {
checkpath -d -o "${KIBANA_USER}" -m750 "/var/log/kibana"
}