Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
# Init script for kibana
# Maintained by
# Maintained by
# Generated by pleaserun.
# Implemented based on LSB Core 3.1:
# * Sections: 20.2, 20.3
Expand All @@ -11,13 +11,10 @@
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description:
# Short-Description:
# Description: Kibana
### END INIT INFO

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

name=kibana
program=/usr/share/kibana/bin/kibana
args=-c\\\ /etc/kibana/kibana.yml
Expand All @@ -26,6 +23,8 @@ pidfile="/var/run/$name.pid"
[ -r /etc/default/$name ] && . /etc/default/$name
[ -r /etc/sysconfig/$name ] && . /etc/sysconfig/$name

export NODE_OPTIONS

[ -z "$nice" ] && nice=0

trace() {
Expand All @@ -46,12 +45,12 @@ start() {


# Setup any environmental stuff beforehand


# Run the program!

chroot --userspec "$user":"$group" "$chroot" sh -c "

cd \"$chdir\"
exec \"$program\" $args
" >> /var/log/kibana/kibana.stdout 2>> /var/log/kibana/kibana.stderr &
Expand Down Expand Up @@ -152,7 +151,7 @@ case "$1" in
exit $code
;;
restart)

stop && start
;;
*)
Expand Down