We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7c0a11 commit aaa09d3Copy full SHA for aaa09d3
kibana-init
@@ -28,6 +28,7 @@ KIBANA_LOG_DIR=/var/log/kibana
28
KIBANA_LOG_FILE="${KIBANA_LOG_DIR}/$NAME.log"
29
DAEMON_OPTS="-l ${KIBANA_LOG_FILE}"
30
DESC="Kibana4"
31
+NODE_OPTIONS="--max-old-space-size=250"
32
33
if [ $(id -u) -ne 0 ]; then
34
echo "You need root privileges to run this script"
@@ -55,7 +56,7 @@ case "$1" in
55
56
chown ${KIBANA_USER}:${KIBANA_GROUP} ${KIBANA_LOG_FILE}
57
58
# Start Daemon
- start-stop-daemon --start --user $KIBANA_USER -c $KIBANA_USER \
59
+ NODE_OPTIONS="$NODE_OPTIONS" start-stop-daemon --start --user $KIBANA_USER -c $KIBANA_USER \
60
--group $KIBANA_GROUP --pidfile "$PID_FILE" --make-pidfile \
61
--background --exec $DAEMON -- $DAEMON_OPTS
62
log_end_msg $?
0 commit comments