blob: 85ec76f9c72e728e761d88d9773136fdb62ef186 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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"
}
|