File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
src/dev/build/tasks/os_packages/service_templates/sysv/etc/init.d Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22# Init script for kibana
3- # Maintained by
3+ # Maintained by
44# Generated by pleaserun.
55# Implemented based on LSB Core 3.1:
66# * Sections: 20.2, 20.3
1111# Required-Stop: $remote_fs $syslog
1212# Default-Start: 2 3 4 5
1313# Default-Stop: 0 1 6
14- # Short-Description:
14+ # Short-Description:
1515# Description: Kibana
1616# ## END INIT INFO
1717
18- PATH=/sbin:/usr/sbin:/bin:/usr/bin
19- export PATH
20-
2118name=kibana
2219program=/usr/share/kibana/bin/kibana
2320args=-c\\\ /etc/kibana/kibana.yml
@@ -26,6 +23,8 @@ pidfile="/var/run/$name.pid"
2623[ -r /etc/default/$name ] && . /etc/default/$name
2724[ -r /etc/sysconfig/$name ] && . /etc/sysconfig/$name
2825
26+ export NODE_OPTIONS
27+
2928[ -z " $nice " ] && nice=0
3029
3130trace () {
@@ -46,12 +45,12 @@ start() {
4645
4746
4847 # Setup any environmental stuff beforehand
49-
48+
5049
5150 # Run the program!
52-
51+
5352 chroot --userspec " $user " :" $group " " $chroot " sh -c "
54-
53+
5554 cd \" $chdir \"
5655 exec \" $program \" $args
5756 " >> /var/log/kibana/kibana.stdout 2>> /var/log/kibana/kibana.stderr &
@@ -152,7 +151,7 @@ case "$1" in
152151 exit $code
153152 ;;
154153 restart)
155-
154+
156155 stop && start
157156 ;;
158157 * )
You can’t perform that action at this time.
0 commit comments